summaryrefslogtreecommitdiff
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-08-18 19:35:53 +0000
committerSenthil Kumaran <orsenthil@gmail.com>2010-08-18 19:35:53 +0000
commitaa8954523c0845e90fcaba5de4094d087b97f91b (patch)
tree93ccf246d9d987606e25c30c0887618e7d8c2d46 /Lib/pydoc.py
parenta54b2dac90d3505176bdc589ee1ef09ff2b7113a (diff)
downloadcpython-git-aa8954523c0845e90fcaba5de4094d087b97f91b.tar.gz
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. ........
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 0798406375..c672cc33c3 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -2032,7 +2032,7 @@ pydoc</strong> by Ka-Ping Yee &lt;ping@lfw.org&gt;</font>'''
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)