[Python-bugs-list] [ python-Bugs-541980 ] urllib.urlopen throws OSError

noreply@sourceforge.net noreply@sourceforge.net
Sun, 14 Apr 2002 17:25:20 -0700


Bugs item #541980, was opened at 2002-04-10 09:44
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=541980&group_id=5470

Category: Python Library
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Jacques A. Vidrine (nectar)
>Assigned to: Guido van Rossum (gvanrossum)
Summary: urllib.urlopen throws OSError

Initial Comment:
urllib.urlopen throws OSError when processing
file:// (local file) URLs and an error is encountered.
It should instead throw IOError in these cases to be
consistent with the built-in open function and with
the urllib documentation.  A patch is attached.

See bug report 482171 for an example of the
consequences of this bug (which was hacked around for
Python 2.2 it appears).  The bug also impacts 4Suite's
XSLT processor (using include paths causes an
unhandled exception).




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

>Comment By: Guido van Rossum (gvanrossum)
Date: 2002-04-14 20:25

Message:
Logged In: YES 
user_id=6380

Thanks; your fix is applied as urllib.py 1.143.

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

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