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

Skip to content

Commit 03066a0

Browse files
authored
Remove OSError related comment in urllib.request. (#1072)
(cherry picked from commit 6dfcc81)
1 parent 28ddd3c commit 03066a0

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

Lib/urllib/request.py

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

0 commit comments

Comments
 (0)