mirror of
https://github.com/python/cpython.git
synced 2025-08-28 12:45:07 +00:00
Remove forking. Doesn't work in Windows.
This commit is contained in:
parent
24e7a29292
commit
fd540695e7
1 changed files with 2 additions and 2 deletions
|
@ -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 <ping@lfw.org></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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue