mirror of
https://github.com/python/cpython
synced 2024-09-19 23:51:46 +00:00
Remove forking. Doesn't work in Windows.
This commit is contained in:
parent
24e7a29292
commit
fd540695e7
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue