-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-36211: Change the output with the full URL when executing make -C Doc/ serve
#12195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Tools/scripts/serve.py
Outdated
@@ -28,7 +28,7 @@ def app(environ, respond): | |||
path = sys.argv[1] | |||
port = int(sys.argv[2]) if len(sys.argv) > 2 else 8000 | |||
httpd = simple_server.make_server('', port, app) | |||
print("Serving {} on port {}, control-C to stop".format(path, port)) | |||
print("Serving {0} on 0.0.0.0 port {1} (http://0.0.0.0:{1}/), control-C to stop".format(path, port)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about using an f-string here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could use a f-string but you can not build the documentation with python 3.5 (not compliant with the f-string)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, thanks!
While we're at it, and sorry for the ping-pongs in this issue, why the Makefile is not simply using your |
Maybe superseeded by #12408 |
https://bugs.python.org/issue36211