homepage

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: urllib.urlopen throws OSError
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: gvanrossum, nectar
Priority: normal Keywords:

Created on 2002年04月10日 13:44 by nectar, last changed 2022年04月10日 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
urllib.patch nectar, 2002年04月10日 13:44 patch for urllib.py
Messages (2)
msg10243 - (view) Author: Jacques A. Vidrine (nectar) Date: 2002年04月10日 13:44
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).
msg10244 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2002年04月15日 00:25
Logged In: YES 
user_id=6380
Thanks; your fix is applied as urllib.py 1.143.
History
Date User Action Args
2022年04月10日 16:05:12adminsetgithub: 36407
2002年04月10日 13:44:26nectarcreate

AltStyle によって変換されたページ (->オリジナル) /