[ python-Bugs-1178145 ] urllib2.py assumes 206 is an error

SourceForge.net noreply at sourceforge.net
Fri Apr 8 18:17:54 CEST 2005


Bugs item #1178145, was opened at 2005-04-06 18:52
Message generated for change (Comment added) made by jimjjewett
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1178145&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Barry Alan Scott (barry-scott)
Assigned to: Nobody/Anonymous (nobody)
Summary: urllib2.py assumes 206 is an error

Initial Comment:
I'm writting code that uses the Range header. The
correct response is 206, but the urllib2.py is coded to
treat any code that is not 200 as error. The correct
code needs to treat 200 to 299 as success.

The attached patch fixes the problem.


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

Comment By: Jim Jewett (jimjjewett)
Date: 2005-04-08 12:17

Message:
Logged In: YES 
user_id=764593

Please re-attach.  SF didn't get the file.

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

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


More information about the Python-bugs-list mailing list