]> granicus.if.org Git - python/commitdiff
Remove OSError related comment in urllib.request. (#1070)
authorSenthil Kumaran <skumaran@gatech.edu>
Mon, 10 Apr 2017 02:49:34 +0000 (19:49 -0700)
committerGitHub <noreply@github.com>
Mon, 10 Apr 2017 02:49:34 +0000 (19:49 -0700)
Lib/urllib/request.py

index b832fc9b2d8aa0fff319c109a939cc4fea1a24f4..3f8dcfb151d744ec1a278ceb35592bf8cc96bbdf 100644 (file)
@@ -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')