From: Senthil Kumaran Date: Mon, 10 Apr 2017 03:38:00 +0000 (-0700) Subject: Remove OSError related comment in urllib.request. (#1071) X-Git-Tag: v3.5.4rc1~220 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1adca396766d318981c0a4b98d9cff2661a57735;p=python Remove OSError related comment in urllib.request. (#1071) (cherry picked from commit 6dfcc81f6b1c82a71a1c876e14424fb8b3573447) --- diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index 0cd03332b0..e98be0cde1 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')