[Python-bugs-list] [ python-Bugs-541980 ] urllib.urlopen throws OSError
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 10 Apr 2002 06:44:26 -0700
Bugs item #541980, was opened at 2002-04-10 08: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: Open
Resolution: None
Priority: 5
Submitted By: Jacques A. Vidrine (nectar)
Assigned to: Nobody/Anonymous (nobody)
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).
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=541980&group_id=5470