Skip to content

Commit

Permalink
Rename portn to port_num
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Feb 4, 2024
1 parent e7c7daa commit 88a1098
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sphinx_autobuild/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -179,7 +179,7 @@ def main():
server.watcher,
build_args,
host=args.host,
port=portn,
port=port_num,
pre_build_commands=pre_build_commands,
)

Expand All @@ -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__":
Expand Down

0 comments on commit 88a1098

Please sign in to comment.