summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-08-18 19:32:21 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-08-18 19:32:21 (GMT)
commit7ff59131f8e5de9a692eb28c3423d95863d583a2 (patch)
treee96cca52c14c09d6ac2eebffe0b94227d378267a /Lib/pydoc.py
parentdfaf9ec93a75a5d41b89dfd4c6540f1289798130 (diff)
downloadcpython-7ff59131f8e5de9a692eb28c3423d95863d583a2.zip
cpython-7ff59131f8e5de9a692eb28c3423d95863d583a2.tar.gz
cpython-7ff59131f8e5de9a692eb28c3423d95863d583a2.tar.bz2
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 dcb4737..acee7b7 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -2029,7 +2029,7 @@ pydoc</strong> by Ka-Ping Yee &lt;ping@lfw.org&gt;</font>'''
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)