From 16e991f3f209d87c672c7be351e8753dc5fe2584 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Sun, 9 Apr 2017 19:15:45 -0700 Subject: [PATCH] Remove OSError related comment in urllib.request. --- Lib/urllib/request.py | 1 - 1 file changed, 1 deletion(-) diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index b832fc9b2d8aa0..3f8dcfb151d744 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -1487,7 +1487,6 @@ def open_local_file(self, req): 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')