File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 2222from sphinx_autobuild .filter import IgnoreFilter
2323from sphinx_autobuild .middleware import JavascriptInjectorMiddleware
2424from sphinx_autobuild .server import RebuildServer
25- from sphinx_autobuild .utils import find_free_port , is_port_available , open_browser , show_message
25+ from sphinx_autobuild .utils import (
26+ find_free_port ,
27+ is_port_available ,
28+ open_browser ,
29+ show_message ,
30+ )
2631
2732
2833def main (argv = ()):
@@ -122,7 +127,8 @@ def _run_with_port_fallback(
122127 if port_explicitly_set :
123128 show_message (
124129 f"Error: Cannot bind to { host_name } :{ port_num } . "
125- f"The port is already in use. Use --port 0 to automatically find a free port."
130+ f"The port is already in use. "
131+ f"Use --port 0 to automatically find a free port."
126132 )
127133 sys .exit (1 )
128134 else :
@@ -244,7 +250,10 @@ def _add_autobuild_arguments(parser):
244250 "--port" ,
245251 type = int ,
246252 default = None ,
247- help = "port to serve documentation on (defaults to 8000, or a free port if 8000 is in use)" ,
253+ help = (
254+ "port to serve documentation on "
255+ "(defaults to 8000, or a free port if 8000 is in use)"
256+ ),
248257 )
249258 group .add_argument (
250259 "--host" ,
You can’t perform that action at this time.
0 commit comments