This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: urllib2 raises AttributeError on redirect
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: jhylton Nosy List: davidmlewis, jackjansen, jhylton, rhettinger
Priority: normal Keywords:

Created on 2003-05-02 02:48 by davidmlewis, last changed 2022-04-10 16:08 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
@trace jackjansen, 2003-05-02 22:32
Messages (7)
msg15814 - (view) Author: David Lewis (davidmlewis) Date: 2003-05-02 02:48
The code

import urllib2
f = urllib2.urlopen('http://www.cwi.nl/~jack/pimp/pimp-darwin-6.5-
Power_Macintosh.plist')

which is executed by pimp.py when the Macintosh PackageManager is 
initially brought up, raises an AttributeError when it gets redirected to 
homepages.cwi.nl.
msg15815 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-05-02 12:02
Logged In: YES 
user_id=45365

The problem is a last-minute checkin before 2.3b1, rev 1.39. It refers to a 
method() method on requests which doesn't exist. Assigning to Raymond, as 
he did the checkin so he's the easiest scapegoat:-)
msg15816 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2003-05-02 19:09
Logged In: YES 
user_id=80475

Please post the whole traceback.
msg15817 - (view) Author: David Lewis (davidmlewis) Date: 2003-05-02 20:17
Logged In: YES 
user_id=626943

I filed a patch under number 731153, if you want to review it.
msg15818 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-05-02 22:32
Logged In: YES 
user_id=45365

And I attached the stack trace.
msg15819 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2003-05-04 23:52
Logged In: YES 
user_id=80475

Jeremy, does your latest check-in take care of this one?
msg15820 - (view) Author: Jeremy Hylton (jhylton) (Python triager) Date: 2003-05-05 03:00
Logged In: YES 
user_id=31392

Fixed in rev. 1.40.
History
Date User Action Args
2022-04-10 16:08:30adminsetgithub: 38420
2003-05-02 02:48:51davidmlewiscreate