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

(cherry picked from commit 6dfcc81f6b)
This commit is contained in:
Senthil Kumaran 2017-04-09 20:37:44 -07:00 committed by GitHub
parent 28ddd3c905
commit 03066a05f5

View file

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