8000 bpo-36211: Change the output with the full URL when executing `make -… · python/cpython@5ffec2e · GitHub
[go: up one dir, main page]

Skip to content

Commit 5ffec2e

Browse files
committed
bpo-36211: Change the output with the full URL when executing make -C Doc/ serve
1 parent 06e1e68 commit 5ffec2e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Change the output of the `make -C Doc/ server` command by showing the
2+
complete URL. Contributed by Stéphane Wirtel.

Tools/scripts/serve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def app(environ, respond):
2828
path = sys.argv[1]
2929
port = int(sys.argv[2]) if len(sys.argv) > 2 else 8000
3030
httpd = simple_server.make_server('', port, app)
31-
print("Serving {} on port {}, control-C to stop".format(path, port))
31+
print("Serving {0} on 0.0.0.0 port {1} (http://0.0.0.0:{1}/), control-C to stop".format(path, port))
3232
try:
3333
httpd.serve_forever()
3434
except KeyboardInterrupt:

0 commit comments

Comments
 (0)
0