[Python-checkins] CVS: python/dist/src/Lib pydoc.py,1.25,1.26

Ka-Ping Yee ping@users.sourceforge.net
Thu, 12 Apr 2001 05:54:38 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv23127

Modified Files:
	pydoc.py 
Log Message:
Remove forking.  Doesn't work in Windows.


Index: pydoc.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pydoc.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -r1.25 -r1.26
*** pydoc.py	2001/04/12 11:59:50	1.25
--- pydoc.py	2001/04/12 12:54:36	1.26
***************
*** 1225,1229 ****
  
  def serve(port, callback=None, completer=None):
!     import BaseHTTPServer, SocketServer, mimetools, select
  
      # Patch up mimetools.Message so it doesn't break if rfc822 is reloaded.
--- 1225,1229 ----
  
  def serve(port, callback=None, completer=None):
!     import BaseHTTPServer, mimetools, select
  
      # Patch up mimetools.Message so it doesn't break if rfc822 is reloaded.
***************
*** 1283,1287 ****
          def log_message(self, *args): pass
  
!     class DocServer(SocketServer.ForkingMixIn, BaseHTTPServer.HTTPServer):
          def __init__(self, port, callback):
              host = (sys.platform == 'mac') and '127.0.0.1' or 'localhost'
--- 1283,1287 ----
          def log_message(self, *args): pass
  
!     class DocServer(BaseHTTPServer.HTTPServer):
          def __init__(self, port, callback):
              host = (sys.platform == 'mac') and '127.0.0.1' or 'localhost'