diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 4cc4ac18b75..cc0f27b0afb 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -1224,7 +1224,7 @@ def apropos(key): # --------------------------------------------------- web browser interface def serve(port, callback=None, completer=None): - import BaseHTTPServer, SocketServer, mimetools, select + import BaseHTTPServer, mimetools, select # Patch up mimetools.Message so it doesn't break if rfc822 is reloaded. class Message(mimetools.Message): @@ -1282,7 +1282,7 @@ pydoc by Ka-Ping Yee <ping@lfw.org>''' def log_message(self, *args): pass - class DocServer(SocketServer.ForkingMixIn, BaseHTTPServer.HTTPServer): + class DocServer(BaseHTTPServer.HTTPServer): def __init__(self, port, callback): host = (sys.platform == 'mac') and '127.0.0.1' or 'localhost' self.address = ('', port)