Remove forking. Doesn't work in Windows.

This commit is contained in:
Ka-Ping Yee 2001-04-12 12:54:36 +00:00
parent 24e7a29292
commit fd540695e7

View file

@ -1224,7 +1224,7 @@ def callback(path, modname, desc):
# --------------------------------------------------- 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 @@ def bltinlink(name):
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)