Skip to content

Commit

Permalink
Remove OSError related comment in urllib.request. (python#1070)
Browse files Browse the repository at this point in the history
  • Loading branch information
orsenthil authored Apr 10, 2017
1 parent 19e0494 commit 6dfcc81
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Lib/urllib/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,6 @@ def open_local_file(self, req):
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')

Expand Down

0 comments on commit 6dfcc81

Please sign in to comment.