]> granicus.if.org Git - python/commitdiff
Remove OSError related comment in urllib.request. (#1071)
authorSenthil Kumaran <skumaran@gatech.edu>
Mon, 10 Apr 2017 03:38:00 +0000 (20:38 -0700)
committerGitHub <noreply@github.com>
Mon, 10 Apr 2017 03:38:00 +0000 (20:38 -0700)
(cherry picked from commit 6dfcc81f6b1c82a71a1c876e14424fb8b3573447)

Lib/urllib/request.py

index 0cd03332b0e97223508c0c8a46233be18ffe346a..e98be0cde1d355cd0c0acce01143e6435cc65713 100644 (file)
@@ -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')