Commits

Guido van Rossum  committed 500d534

Fix typo (missing "req." prefix on error_302_dict) found by Neil
Norwitz's PyChecker.

  • Participants
  • Parent commits 01be083
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/urllib2.py

         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)