[Python-checkins] r84174 - in python/branches/release27-maint: Lib/pydoc.py

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


Author: senthil.kumaran
Date: Wed Aug 18 21:35:53 2010
New Revision: 84174

Log:
Merged revisions 84173 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84173 | senthil.kumaran | 2010-08-19 01:02:21 +0530 (Thu, 19 Aug 2010) | 3 lines
  
  Fix Issue672656 - Securing pydoc server.
........


Modified:
   python/branches/release27-maint/   (props changed)
   python/branches/release27-maint/Lib/pydoc.py

Modified: python/branches/release27-maint/Lib/pydoc.py
==============================================================================
--- python/branches/release27-maint/Lib/pydoc.py	(original)
+++ python/branches/release27-maint/Lib/pydoc.py	Wed Aug 18 21:35:53 2010
@@ -2032,7 +2032,7 @@
     class DocServer(BaseHTTPServer.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