diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 0798406375e..c672cc33c36 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -2032,7 +2032,7 @@ pydoc by Ka-Ping Yee <ping@lfw.org>''' 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)