[Python-checkins] python/dist/src/Lib StringIO.py, 1.31, 1.32 _strptime.py, 1.29, 1.30 httplib.py, 1.82, 1.83 random.py, 1.58, 1.59 sre_parse.py, 1.58, 1.59 traceback.py, 1.29, 1.30 urllib2.py, 1.59, 1.60

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Sun Jan 18 15:29:57 EST 2004


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

Modified Files:
	StringIO.py _strptime.py httplib.py random.py sre_parse.py 
	traceback.py urllib2.py 
Log Message:
Whitespace normalization.


Index: StringIO.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/StringIO.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** StringIO.py	15 Dec 2003 10:16:09 -0000	1.31
--- StringIO.py	18 Jan 2004 20:29:54 -0000	1.32
***************
*** 143,147 ****
  
      def truncate(self, size=None):
!         _complain_ifclosed(self.closed) 
          if size is None:
              size = self.pos
--- 143,147 ----
  
      def truncate(self, size=None):
!         _complain_ifclosed(self.closed)
          if size is None:
              size = self.pos

Index: _strptime.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/_strptime.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** _strptime.py	16 Nov 2003 16:17:48 -0000	1.29
--- _strptime.py	18 Jan 2004 20:29:54 -0000	1.30
***************
*** 366,370 ****
                      if time.tzname[0] == time.tzname[1] and \
                         time.daylight:
!                             break
                      else:
                          tz = value
--- 366,370 ----
                      if time.tzname[0] == time.tzname[1] and \
                         time.daylight:
!                         break
                      else:
                          tz = value

Index: httplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/httplib.py,v
retrieving revision 1.82
retrieving revision 1.83
diff -C2 -d -r1.82 -r1.83
*** httplib.py	19 Nov 2003 19:51:55 -0000	1.82
--- httplib.py	18 Jan 2004 20:29:54 -0000	1.83
***************
*** 611,615 ****
              self.__response = None
  
!        
          # in certain cases, we cannot issue another request on this connection.
          # this occurs when:
--- 611,615 ----
              self.__response = None
  
! 
          # in certain cases, we cannot issue another request on this connection.
          # this occurs when:
***************
*** 732,736 ****
          # optional skip_host argument to putrequest().  The check is
          # harder because field names are case insensitive.
!         if 'host' in [k.lower() for k in headers]:                
              self.putrequest(method, url, skip_host=1)
          else:
--- 732,736 ----
          # optional skip_host argument to putrequest().  The check is
          # harder because field names are case insensitive.
!         if 'host' in [k.lower() for k in headers]:
              self.putrequest(method, url, skip_host=1)
          else:

Index: random.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/random.py,v
retrieving revision 1.58
retrieving revision 1.59
diff -C2 -d -r1.58 -r1.59
*** random.py	6 Nov 2003 14:06:47 -0000	1.58
--- random.py	18 Jan 2004 20:29:54 -0000	1.59
***************
*** 178,182 ****
  
              if width >= maxwidth:
!                     return int(istart + self._randbelow(width))
              return int(istart + int(self.random()*width))
          if step == 1:
--- 178,182 ----
  
              if width >= maxwidth:
!                 return int(istart + self._randbelow(width))
              return int(istart + int(self.random()*width))
          if step == 1:

Index: sre_parse.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sre_parse.py,v
retrieving revision 1.58
retrieving revision 1.59
diff -C2 -d -r1.58 -r1.59
*** sre_parse.py	17 Oct 2003 22:13:16 -0000	1.58
--- sre_parse.py	18 Jan 2004 20:29:54 -0000	1.59
***************
*** 366,372 ****
  
  def _parse_sub_cond(source, state, condgroup):
!     item_yes = _parse(source, state) 
      if source.match("|"):
!         item_no = _parse(source, state) 
          if source.match("|"):
              raise error, "conditional backref with more than two branches"
--- 366,372 ----
  
  def _parse_sub_cond(source, state, condgroup):
!     item_yes = _parse(source, state)
      if source.match("|"):
!         item_no = _parse(source, state)
          if source.match("|"):
              raise error, "conditional backref with more than two branches"

Index: traceback.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/traceback.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** traceback.py	5 Nov 2003 23:03:00 -0000	1.29
--- traceback.py	18 Jan 2004 20:29:54 -0000	1.30
***************
*** 220,224 ****
      finally:
          etype = value = tb = None
!     
  
  def print_last(limit=None, file=None):
--- 220,224 ----
      finally:
          etype = value = tb = None
! 
  
  def print_last(limit=None, file=None):

Index: urllib2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib2.py,v
retrieving revision 1.59
retrieving revision 1.60
diff -C2 -d -r1.59 -r1.60
*** urllib2.py	17 Dec 2003 18:52:16 -0000	1.59
--- urllib2.py	18 Jan 2004 20:29:54 -0000	1.60
***************
*** 427,435 ****
      def add_parent(self, parent):
          self.parent = parent
!         
      def close(self):
          # Only exists for backwards compatibility
          pass
!         
      def __lt__(self, other):
          if not hasattr(other, "handler_order"):
--- 427,435 ----
      def add_parent(self, parent):
          self.parent = parent
! 
      def close(self):
          # Only exists for backwards compatibility
          pass
! 
      def __lt__(self, other):
          if not hasattr(other, "handler_order"):
***************
*** 771,775 ****
              # but it's better than the current 'repeat until recursion
              # depth exceeded' approach <wink>
!             raise HTTPError(req.get_full_url(), 401, "digest auth failed", 
                              headers, None)
          else:
--- 771,775 ----
              # but it's better than the current 'repeat until recursion
              # depth exceeded' approach <wink>
!             raise HTTPError(req.get_full_url(), 401, "digest auth failed",
                              headers, None)
          else:
***************
*** 846,850 ****
              # XXX handle auth-int.
              pass
!     
          # XXX should the partial digests be encoded too?
  
--- 846,850 ----
              # XXX handle auth-int.
              pass
! 
          # XXX should the partial digests be encoded too?
  
***************
*** 888,892 ****
      def http_error_401(self, req, fp, code, msg, headers):
          host = urlparse.urlparse(req.get_full_url())[1]
!         retry = self.http_error_auth_reqed('www-authenticate', 
                                             host, req, headers)
          self.reset_retry_count()
--- 888,892 ----
      def http_error_401(self, req, fp, code, msg, headers):
          host = urlparse.urlparse(req.get_full_url())[1]
!         retry = self.http_error_auth_reqed('www-authenticate',
                                             host, req, headers)
          self.reset_retry_count()
***************
*** 900,904 ****
      def http_error_407(self, req, fp, code, msg, headers):
          host = req.get_host()
!         retry = self.http_error_auth_reqed('proxy-authenticate', 
                                             host, req, headers)
          self.reset_retry_count()
--- 900,904 ----
      def http_error_407(self, req, fp, code, msg, headers):
          host = req.get_host()
!         retry = self.http_error_auth_reqed('proxy-authenticate',
                                             host, req, headers)
          self.reset_retry_count()
***************
*** 965,969 ****
  
          # Pick apart the HTTPResponse object to get the various pieces
!         # of the 
          resp = addinfourl(r.fp, r.msg, req.get_full_url())
          resp.code = r.status
--- 965,969 ----
  
          # Pick apart the HTTPResponse object to get the various pieces
!         # of the
          resp = addinfourl(r.fp, r.msg, req.get_full_url())
          resp.code = r.status





More information about the Python-checkins mailing list