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

Skip to content

Commit 1adca39

Browse files
authored
Remove OSError related comment in urllib.request. (python#1071)
(cherry picked from commit 6dfcc81)
1 parent aa218af commit 1adca39

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
@@ -1424,7 +1424,6 @@ def open_local_file(self, req):
14241424
origurl = 'file://' + filename
14251425
return addinfourl(open(localfile, 'rb'), headers, origurl)
14261426
except OSError as exp:
1427-
# users shouldn't expect OSErrors coming from urlopen()
14281427
raise URLError(exp)
14291428
raise URLError('file not on local host')
14301429

0 commit comments

Comments
 (0)