mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Remove OSError related comment in urllib.request. (#1070)
This commit is contained in:
parent
19e0494256
commit
6dfcc81f6b
1 changed files with 0 additions and 1 deletions
|
@ -1487,7 +1487,6 @@ class FileHandler(BaseHandler):
|
|||
origurl = 'file://' + filename
|
||||
return addinfourl(open(localfile, 'rb'), headers, origurl)
|
||||
except OSError as exp:
|
||||
# users shouldn't expect OSErrors coming from urlopen()
|
||||
raise URLError(exp)
|
||||
raise URLError('file not on local host')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue