Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Closed
wants to merge 4 commits into from

Conversation

matrixise
Copy link
Member

@matrixise matrixise commented Mar 6, 2019

@@ -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))
Copy link
Contributor

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?

Copy link
Member Author

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)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, thanks!

@JulienPalard
Copy link
Member

While we're at it, and sorry for the ping-pongs in this issue, why the Makefile is not simply using your -d option of the http.server module?

@JulienPalard
Copy link
Member

Maybe superseeded by #12408

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants