[Python-bugs-list] [ python-Bugs-731116 ] urllib2 raises AttributeError on redirect

SourceForge.net noreply@sourceforge.net
Sun, 04 May 2003 20:00:28 -0700


Bugs item #731116, was opened at 2003-05-02 02:48
Message generated for change (Comment added) made by jhylton
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=731116&group_id=5470

Category: Python Library
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: David Lewis (davidmlewis)
Assigned to: Jeremy Hylton (jhylton)
Summary: urllib2 raises AttributeError on redirect

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: Jeremy Hylton (jhylton)
Date: 2003-05-05 03:00

Message:
Logged In: YES 
user_id=31392

Fixed in rev. 1.40.


----------------------------------------------------------------------

Comment By: Raymond Hettinger (rhettinger)
Date: 2003-05-04 23:52

Message:
Logged In: YES 
user_id=80475

Jeremy, does your latest check-in take care of this one?


----------------------------------------------------------------------

Comment By: Jack Jansen (jackjansen)
Date: 2003-05-02 22:32

Message:
Logged In: YES 
user_id=45365

And I attached the stack trace.

----------------------------------------------------------------------

Comment By: David Lewis (davidmlewis)
Date: 2003-05-02 20:17

Message:
Logged In: YES 
user_id=626943

I filed a patch under number 731153, if you want to review it.

----------------------------------------------------------------------

Comment By: Raymond Hettinger (rhettinger)
Date: 2003-05-02 19:09

Message:
Logged In: YES 
user_id=80475

Please post the whole traceback.

----------------------------------------------------------------------

Comment By: Jack Jansen (jackjansen)
Date: 2003-05-02 12:02

Message:
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:-)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=731116&group_id=5470