]> granicus.if.org Git - python/commitdiff
Fix typo (missing "req." prefix on error_302_dict) found by Neil
authorGuido van Rossum <guido@python.org>
Sun, 15 Apr 2001 13:08:01 +0000 (13:08 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 15 Apr 2001 13:08:01 +0000 (13:08 +0000)
Norwitz's PyChecker.

Lib/urllib2.py

index 5ca5452a4ff7328bd01744844446dc1403f29b15..042f2ba6f2c3415d238345f28aa8ce4f63096fb3 100644 (file)
@@ -447,7 +447,8 @@ class HTTPRedirectHandler(BaseHandler):
         new = Request(newurl, req.get_data())
         new.error_302_dict = {}
         if hasattr(req, 'error_302_dict'):
-            if len(error_302_dict)>10 or req.error_302_dict.has_key(newurl):
+            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)
             new.error_302_dict.update(req.error_302_dict)