summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <skumaran@gatech.edu>2017-04-10 03:38:00 (GMT)
committerGitHub <noreply@github.com>2017-04-10 03:38:00 (GMT)
commit1adca396766d318981c0a4b98d9cff2661a57735 (patch)
tree80eaeeff73ec81fa46448d1a1723b83345b692cb
parentaa218af34494230e8f258b3ed4f9cf5070225a92 (diff)
downloadcpython-1adca396766d318981c0a4b98d9cff2661a57735.zip
cpython-1adca396766d318981c0a4b98d9cff2661a57735.tar.gz
cpython-1adca396766d318981c0a4b98d9cff2661a57735.tar.bz2
Remove OSError related comment in urllib.request. (#1071)
(cherry picked from commit 6dfcc81f6b1c82a71a1c876e14424fb8b3573447)
-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 0cd0333..e98be0c 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -1424,7 +1424,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')