mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
open() now raises IOError, not RuntimeError!
This commit is contained in:
parent
c431549e21
commit
590177bc88
1 changed files with 1 additions and 1 deletions
|
@ -311,7 +311,7 @@ def try_open(file):
|
|||
for dir in INFOPATH:
|
||||
try:
|
||||
return open(dir + file, 'r')
|
||||
except RuntimeError:
|
||||
except IOError:
|
||||
pass
|
||||
raise NoSuchFile, file
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue