summaryrefslogtreecommitdiffstats
path: root/Lib/urllib
diff options
context:
space:
mode:
authorSenthil Kumaran <skumaran@gatech.edu>2017-04-10 03:37:44 (GMT)
committerGitHub <noreply@github.com>2017-04-10 03:37:44 (GMT)
commit03066a05f5cdf96bc3bf15718f586877860f2d47 (patch)
tree649282472827dc17af8c9403c5a4915b01583fd1 /Lib/urllib
parent28ddd3c905836907bf0c4df909067d3a054358c1 (diff)
downloadcpython-03066a05f5cdf96bc3bf15718f586877860f2d47.zip
cpython-03066a05f5cdf96bc3bf15718f586877860f2d47.tar.gz
cpython-03066a05f5cdf96bc3bf15718f586877860f2d47.tar.bz2
Remove OSError related comment in urllib.request. (#1072)
(cherry picked from commit 6dfcc81f6b1c82a71a1c876e14424fb8b3573447)
Diffstat (limited to 'Lib/urllib')
-rw-r--r--Lib/urllib/request.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py
index 3e82000..9692144 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -1488,7 +1488,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')