[Python-checkins] r80851 - in python/branches/py3k: Tools/scripts/serve.py
r.david.murray
python-checkins at python.org
Thu May 6 03:09:27 CEST 2010
Author: r.david.murray
Date: Thu May 6 03:09:27 2010
New Revision: 80851
Log:
Merged revisions 80849 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80849 | r.david.murray | 2010-05-05 20:59:04 -0400 (Wed, 05 May 2010) | 4 lines
Have the serve.py script announce the directory it is
serving and which port it is serving it on (I can
never remember the default port number it uses...)
........
Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Tools/scripts/serve.py
Modified: python/branches/py3k/Tools/scripts/serve.py
==============================================================================
--- python/branches/py3k/Tools/scripts/serve.py (original)
+++ python/branches/py3k/Tools/scripts/serve.py Thu May 6 03:09:27 2010
@@ -28,4 +28,5 @@
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 {}".format(path, port))
httpd.serve_forever()
More information about the Python-checkins
mailing list