From: Senthil Kumaran Date: Mon, 10 Apr 2017 02:49:34 +0000 (-0700) Subject: Remove OSError related comment in urllib.request. (#1070) X-Git-Tag: v3.7.0a1~987 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6dfcc81f6b1c82a71a1c876e14424fb8b3573447;p=python Remove OSError related comment in urllib.request. (#1070) --- diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index b832fc9b2d..3f8dcfb151 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')