diff options
author | Guido van Rossum <guido@python.org> | 2001-04-15 13:08:01 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-04-15 13:08:01 (GMT) |
commit | 2d996c07049db6648ddf33aedff52e78908949c6 (patch) | |
tree | ec50c1ac6cc624f9325969b0c8bcc58a9371665a /Lib/urllib2.py | |
parent | b8b45eac7118cdfb8b9f87c31718023fe5ed29e1 (diff) | |
download | cpython-2d996c07049db6648ddf33aedff52e78908949c6.zip cpython-2d996c07049db6648ddf33aedff52e78908949c6.tar.gz cpython-2d996c07049db6648ddf33aedff52e78908949c6.tar.bz2 |
Fix typo (missing "req." prefix on error_302_dict) found by Neil
Norwitz's PyChecker.
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r-- | Lib/urllib2.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 5ca5452..042f2ba 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -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) |