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

Guido van Rossum gvanrossum@users.sourceforge.net
Sun, 15 Apr 2001 06:08:03 -0700


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

Modified Files:
	urllib2.py 
Log Message:
Fix typo (missing "req." prefix on error_302_dict) found by Neil
Norwitz's PyChecker.


Index: urllib2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib2.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** urllib2.py	2001/04/11 07:44:53	1.12
--- urllib2.py	2001/04/15 13:08:01	1.13
***************
*** 448,452 ****
          new.error_302_dict = {}
          if hasattr(req, 'error_302_dict'):
!             if len(error_302_dict)>10 or req.error_302_dict.has_key(newurl):
                  raise HTTPError(req.get_full_url(), code,
                                  self.inf_msg + msg, headers)
--- 448,453 ----
          new.error_302_dict = {}
          if hasattr(req, 'error_302_dict'):
!             if len(req.error_302_dict)>10 or \
!                req.error_302_dict.has_key(newurl):
                  raise HTTPError(req.get_full_url(), code,
                                  self.inf_msg + msg, headers)