Remove OSError related comment in urllib.request. (#1070)

This commit is contained in:
Senthil Kumaran 2017-04-09 19:49:34 -07:00 committed by GitHub
parent 19e0494256
commit 6dfcc81f6b
1 changed files with 0 additions and 1 deletions

View File

@ -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')