From 88a109889385adb3c0d7f638d8083bcba8e9171c Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Sun, 4 Feb 2024 05:29:13 +0000 Subject: [PATCH] Rename ``portn`` to ``port_num`` --- sphinx_autobuild/__main__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sphinx_autobuild/__main__.py b/sphinx_autobuild/__main__.py index 6d8f410..2ee6b42 100644 --- a/sphinx_autobuild/__main__.py +++ b/sphinx_autobuild/__main__.py @@ -170,7 +170,7 @@ def main(): if not os.path.exists(outdir): os.makedirs(outdir) - portn = args.port or find_free_port() + port_num = args.port or find_free_port() server = Server() build_args = _get_build_args(args) @@ -179,7 +179,7 @@ def main(): server.watcher, build_args, host=args.host, - port=portn, + port=port_num, pre_build_commands=pre_build_commands, ) @@ -195,9 +195,9 @@ def main(): builder() if args.openbrowser is True: - server.serve(port=portn, host=args.host, root=outdir, open_url_delay=args.delay) + server.serve(port=port_num, host=args.host, root=outdir, open_url_delay=args.delay) else: - server.serve(port=portn, host=args.host, root=outdir) + server.serve(port=port_num, host=args.host, root=outdir) if __name__ == "__main__":