[Python-checkins] python/dist/src/Lib urllib2.py,1.74,1.75

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Sun Aug 8 03:05:17 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25557/Lib

Modified Files:
	urllib2.py 
Log Message:
Whitespace normalization.


Index: urllib2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib2.py,v
retrieving revision 1.74
retrieving revision 1.75
diff -C2 -d -r1.74 -r1.75
*** urllib2.py	7 Aug 2004 17:40:50 -0000	1.74
--- urllib2.py	8 Aug 2004 01:05:14 -0000	1.75
***************
*** 1004,1014 ****
          # to read().  This weird wrapping allows the returned object to
          # have readline() and readlines() methods.
!         
          # XXX It might be better to extract the read buffering code
          # out of socket._fileobject() and into a base class.
!         
          r.recv = r.read
          fp = socket._fileobject(r)
!         
          resp = addinfourl(fp, r.msg, req.get_full_url())
          resp.code = r.status
--- 1004,1014 ----
          # to read().  This weird wrapping allows the returned object to
          # have readline() and readlines() methods.
! 
          # XXX It might be better to extract the read buffering code
          # out of socket._fileobject() and into a base class.
! 
          r.recv = r.read
          fp = socket._fileobject(r)
! 
          resp = addinfourl(fp, r.msg, req.get_full_url())
          resp.code = r.status



More information about the Python-checkins mailing list