diff options
author | Senthil Kumaran <skumaran@gatech.edu> | 2017-04-10 02:49:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-10 02:49:34 (GMT) |
commit | 6dfcc81f6b1c82a71a1c876e14424fb8b3573447 (patch) | |
tree | f09235b4e879e9b0570789c1509b1af0c9332248 | |
parent | 19e04942562a980ad2519f6ff79c455a7472783b (diff) | |
download | cpython-6dfcc81f6b1c82a71a1c876e14424fb8b3573447.zip cpython-6dfcc81f6b1c82a71a1c876e14424fb8b3573447.tar.gz cpython-6dfcc81f6b1c82a71a1c876e14424fb8b3573447.tar.bz2 |
Remove OSError related comment in urllib.request. (#1070)
-rw-r--r-- | Lib/urllib/request.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index b832fc9..3f8dcfb 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -1487,7 +1487,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') |