[Python-checkins] CVS: python/dist/src/Lib BaseHTTPServer.py,1.13,1.14

Eric S. Raymond esr@users.sourceforge.net
Thu, 08 Feb 2001 20:57:19 -0800


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

Modified Files:
	BaseHTTPServer.py 
Log Message:
String method conversion.


Index: BaseHTTPServer.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/BaseHTTPServer.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** BaseHTTPServer.py	2001/01/20 19:54:20	1.13
--- BaseHTTPServer.py	2001/02/09 04:57:17	1.14
***************
*** 69,73 ****
  import time
  import socket # For gethostbyaddr()
- import string
  import mimetools
  import SocketServer
--- 69,72 ----
***************
*** 204,208 ****
  
      # The Python system version, truncated to its first component.
!     sys_version = "Python/" + string.split(sys.version)[0]
  
      # The server software version.  You may want to override this.
--- 203,207 ----
  
      # The Python system version, truncated to its first component.
!     sys_version = "Python/" + sys.version.split()[0]
  
      # The server software version.  You may want to override this.
***************
*** 229,233 ****
              requestline = requestline[:-1]
          self.requestline = requestline
!         words = string.split(requestline)
          if len(words) == 3:
              [command, path, version] = words
--- 228,232 ----
              requestline = requestline[:-1]
          self.requestline = requestline
!         words = requestline.split()
          if len(words) == 3:
              [command, path, version] = words
***************
*** 469,473 ****
  
      if sys.argv[1:]:
!         port = string.atoi(sys.argv[1])
      else:
          port = 8000
--- 468,472 ----
  
      if sys.argv[1:]:
!         port = sys.argv[1].atoi()
      else:
          port = 8000