mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +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 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…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ka-Ping Yee
						Ka-Ping Yee