mirror of
https://github.com/python/cpython.git
synced 2025-09-30 12:21:51 +00:00
Remove OSError related comment in urllib.request. (#1072)
(cherry picked from commit 6dfcc81f6b
)
This commit is contained in:
parent
28ddd3c905
commit
03066a05f5
1 changed files with 0 additions and 1 deletions
|
@ -1488,7 +1488,6 @@ class FileHandler(BaseHandler):
|
||||||
origurl = 'file://' + filename
|
origurl = 'file://' + filename
|
||||||
return addinfourl(open(localfile, 'rb'), headers, origurl)
|
return addinfourl(open(localfile, 'rb'), headers, origurl)
|
||||||
except OSError as exp:
|
except OSError as exp:
|
||||||
# users shouldn't expect OSErrors coming from urlopen()
|
|
||||||
raise URLError(exp)
|
raise URLError(exp)
|
||||||
raise URLError('file not on local host')
|
raise URLError('file not on local host')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue