[Python-checkins] r84173 - python/branches/py3k/Lib/pydoc.py

senthil.kumaran python-checkins at python.org
Wed Aug 18 21:32:21 CEST 2010


Author: senthil.kumaran
Date: Wed Aug 18 21:32:21 2010
New Revision: 84173

Log:
Fix Issue672656 - Securing pydoc server.



Modified:
   python/branches/py3k/Lib/pydoc.py

Modified: python/branches/py3k/Lib/pydoc.py
==============================================================================
--- python/branches/py3k/Lib/pydoc.py	(original)
+++ python/branches/py3k/Lib/pydoc.py	Wed Aug 18 21:32:21 2010
@@ -2029,7 +2029,7 @@
     class DocServer(http.server.HTTPServer):
         def __init__(self, port, callback):
             host = 'localhost'
-            self.address = ('', port)
+            self.address = (host, port)
             self.url = 'http://%s:%d/' % (host, port)
             self.callback = callback
             self.base.__init__(self, self.address, self.handler)


More information about the Python-checkins mailing list