Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfaf9ec commit 7ff5913Copy full SHA for 7ff5913
1 file changed
Lib/pydoc.py
@@ -2029,7 +2029,7 @@ def log_message(self, *args): pass
2029
class DocServer(http.server.HTTPServer):
2030
def __init__(self, port, callback):
2031
host = 'localhost'
2032
- self.address = ('', port)
+ self.address = (host, port)
2033
self.url = 'http://%s:%d/' % (host, port)
2034
self.callback = callback
2035
self.base.__init__(self, self.address, self.handler)
0 commit comments