Kaydet (Commit) aa895452 authored tarafından Senthil Kumaran's avatar Senthil Kumaran

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.
........
üst a54b2dac
...@@ -2032,7 +2032,7 @@ pydoc</strong> by Ka-Ping Yee &lt;ping@lfw.org&gt;</font>''' ...@@ -2032,7 +2032,7 @@ pydoc</strong> by Ka-Ping Yee &lt;ping@lfw.org&gt;</font>'''
class DocServer(BaseHTTPServer.HTTPServer): class DocServer(BaseHTTPServer.HTTPServer):
def __init__(self, port, callback): def __init__(self, port, callback):
host = 'localhost' host = 'localhost'
self.address = ('', port) self.address = (host, port)
self.url = 'http://%s:%d/' % (host, port) self.url = 'http://%s:%d/' % (host, port)
self.callback = callback self.callback = callback
self.base.__init__(self, self.address, self.handler) self.base.__init__(self, self.address, self.handler)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment