summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorKa-Ping Yee <ping@zesty.ca>2001-04-12 12:54:36 (GMT)
committerKa-Ping Yee <ping@zesty.ca>2001-04-12 12:54:36 (GMT)
commitfd540695e7830ad93695410104b8a2ca934993cf (patch)
tree8c3f628caf637a8cceb7f3d02b56d894ed77e72d /Lib
parent24e7a29292489c7fe2ba4e023b798d5626be04b6 (diff)
downloadcpython-fd540695e7830ad93695410104b8a2ca934993cf.zip
cpython-fd540695e7830ad93695410104b8a2ca934993cf.tar.gz
cpython-fd540695e7830ad93695410104b8a2ca934993cf.tar.bz2
Remove forking. Doesn't work in Windows.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/pydoc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 4cc4ac1..cc0f27b 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</strong> by Ka-Ping Yee &lt;ping@lfw.org&gt;</font></small></small>'''
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)