Skip to content

Commit 88a1098

Browse files
committed
Rename portn to port_num
1 parent e7c7daa commit 88a1098

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sphinx_autobuild/__main__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def main():
170170
if not os.path.exists(outdir):
171171
os.makedirs(outdir)
172172

173-
portn = args.port or find_free_port()
173+
port_num = args.port or find_free_port()
174174
server = Server()
175175

176176
build_args = _get_build_args(args)
@@ -179,7 +179,7 @@ def main():
179179
server.watcher,
180180
build_args,
181181
host=args.host,
182-
port=portn,
182+
port=port_num,
183183
pre_build_commands=pre_build_commands,
184184
)
185185

@@ -195,9 +195,9 @@ def main():
195195
builder()
196196

197197
if args.openbrowser is True:
198-
server.serve(port=portn, host=args.host, root=outdir, open_url_delay=args.delay)
198+
server.serve(port=port_num, host=args.host, root=outdir, open_url_delay=args.delay)
199199
else:
200-
server.serve(port=portn, host=args.host, root=outdir)
200+
server.serve(port=port_num, host=args.host, root=outdir)
201201

202202

203203
if __name__ == "__main__":

0 commit comments

Comments
 (0)