Kaydet (Commit) 6dfcc81f authored tarafından Senthil Kumaran's avatar Senthil Kumaran Kaydeden (comit) GitHub

Remove OSError related comment in urllib.request. (#1070)

üst 19e04942
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment