[Python-checkins] CVS: python/dist/src/Lib cgi.py,1.65,1.66 cmd.py,1.25,1.26 gzip.py,1.25,1.26 urllib.py,1.129,1.130 urllib2.py,1.17,1.18

Tim Peters tim_one@users.sourceforge.net
Thu, 09 Aug 2001 14:40:32 -0700


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

Modified Files:
	cgi.py cmd.py gzip.py urllib.py urllib2.py 
Log Message:
Whitespace normalization.


Index: cgi.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/cgi.py,v
retrieving revision 1.65
retrieving revision 1.66
diff -C2 -d -r1.65 -r1.66
*** cgi.py	2001/07/25 21:00:19	1.65
--- cgi.py	2001/08/09 21:40:30	1.66
***************
*** 248,254 ****
          boundary = pdict['boundary']
      if not valid_boundary(boundary):
!         raise ValueError,  ('Invalid boundary in multipart form: %s' 
                              % `ib`)
!     
      nextpart = "--" + boundary
      lastpart = "--" + boundary + "--"
--- 248,254 ----
          boundary = pdict['boundary']
      if not valid_boundary(boundary):
!         raise ValueError,  ('Invalid boundary in multipart form: %s'
                              % `ib`)
! 
      nextpart = "--" + boundary
      lastpart = "--" + boundary + "--"
***************
*** 601,605 ****
          ib = self.innerboundary
          if not valid_boundary(ib):
!             raise ValueError, ('Invalid boundary in multipart form: %s' 
                                 % `ib`)
          self.list = []
--- 601,605 ----
          ib = self.innerboundary
          if not valid_boundary(ib):
!             raise ValueError, ('Invalid boundary in multipart form: %s'
                                 % `ib`)
          self.list = []

Index: cmd.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/cmd.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** cmd.py	2001/07/28 14:44:03	1.25
--- cmd.py	2001/08/09 21:40:30	1.26
***************
*** 21,25 ****
     against, all returned matches must begin with it.  line is the current
     input line (lstripped), begidx and endidx are the beginning and end
!    indexes of the text being matched, which could be used to provide 
     different completion depending upon which position the argument is in.
  
--- 21,25 ----
     against, all returned matches must begin with it.  line is the current
     input line (lstripped), begidx and endidx are the beginning and end
!    indexes of the text being matched, which could be used to provide
     different completion depending upon which position the argument is in.
  
***************
*** 28,32 ****
  
  The `completedefault' method may be overridden to intercept completions for
! commands that have no complete_ method. 
  
  The data member `self.ruler' sets the character used to draw separator lines
--- 28,32 ----
  
  The `completedefault' method may be overridden to intercept completions for
! commands that have no complete_ method.
  
  The data member `self.ruler' sets the character used to draw separator lines
***************
*** 67,71 ****
      use_rawinput = 1
  
!     def __init__(self, completekey='tab'): 
          if completekey:
              try:
--- 67,71 ----
      use_rawinput = 1
  
!     def __init__(self, completekey='tab'):
          if completekey:
              try:
***************
*** 132,136 ****
          cmd, arg = line[:i], line[i:].strip()
          return cmd, arg, line
!     
      def onecmd(self, line):
          cmd, arg, line = self.parseline(line)
--- 132,136 ----
          cmd, arg = line[:i], line[i:].strip()
          return cmd, arg, line
! 
      def onecmd(self, line):
          cmd, arg, line = self.parseline(line)
***************
*** 192,196 ****
          except IndexError:
              return None
!     
      def get_names(self):
          # Inheritance says we have to look in class and
--- 192,196 ----
          except IndexError:
              return None
! 
      def get_names(self):
          # Inheritance says we have to look in class and

Index: gzip.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/gzip.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** gzip.py	2001/08/09 07:21:56	1.25
--- gzip.py	2001/08/09 21:40:30	1.26
***************
*** 278,282 ****
      def rewind(self):
          '''Return the uncompressed stream file position indicator to the
!         beginning of the file''' 
          if self.mode != READ:
              raise IOError("Can't rewind in write mode")
--- 278,282 ----
      def rewind(self):
          '''Return the uncompressed stream file position indicator to the
!         beginning of the file'''
          if self.mode != READ:
              raise IOError("Can't rewind in write mode")
***************
*** 292,296 ****
                  raise IOError('Negative seek in write mode')
              count = offset - self.offset
!             for i in range(count/1024): 
                  f.write(1024*'\0')
              self.write((count%1024)*'\0')
--- 292,296 ----
                  raise IOError('Negative seek in write mode')
              count = offset - self.offset
!             for i in range(count/1024):
                  f.write(1024*'\0')
              self.write((count%1024)*'\0')

Index: urllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib.py,v
retrieving revision 1.129
retrieving revision 1.130
diff -C2 -d -r1.129 -r1.130
*** urllib.py	2001/08/09 18:04:14	1.129
--- urllib.py	2001/08/09 21:40:30	1.130
***************
*** 1354,1360 ****
          # now check if we match one of the registry values.
          for test in proxyOverride:
!             test = test.replace(".", r"\.")	# mask dots
!             test = test.replace("*", r".*")	# change glob sequence
!             test = test.replace("?", r".")	# change glob char
              for val in host:
                  # print "%s <--> %s" %( test, val )
--- 1354,1360 ----
          # now check if we match one of the registry values.
          for test in proxyOverride:
!             test = test.replace(".", r"\.")     # mask dots
!             test = test.replace("*", r".*")     # change glob sequence
!             test = test.replace("?", r".")      # change glob char
              for val in host:
                  # print "%s <--> %s" %( test, val )

Index: urllib2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib2.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** urllib2.py	2001/08/07 21:12:25	1.17
--- urllib2.py	2001/08/09 21:40:30	1.18
***************
*** 453,457 ****
  
          # Don't close the fp until we are sure that we won't use it
!         # with HTTPError.  
          fp.read()
          fp.close()
--- 453,457 ----
  
          # Don't close the fp until we are sure that we won't use it
!         # with HTTPError.
          fp.read()
          fp.close()