Skip to content

Commit

Permalink
Remove OSError related comment in urllib.request. (#1071)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6dfcc81)
  • Loading branch information
orsenthil committed Apr 10, 2017
1 parent aa218af commit 1adca39
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Lib/urllib/request.py
Expand Up @@ -1424,7 +1424,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 1adca39

Please sign in to comment.