Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6dfcc81

Browse files
authored
Remove OSError related comment in urllib.request. (python#1070)
1 parent 19e0494 commit 6dfcc81

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Lib/urllib/request.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,6 @@ def open_local_file(self, req):
14871487
origurl = 'file://' + filename
14881488
return addinfourl(open(localfile, 'rb'), headers, origurl)
14891489
except OSError as exp:
1490-
# users shouldn't expect OSErrors coming from urlopen()
14911490
raise URLError(exp)
14921491
raise URLError('file not on local host')
14931492

0 commit comments

Comments
 (0)