open() now raises IOError, not RuntimeError!

This commit is contained in:
Guido van Rossum 1992-09-24 09:14:44 +00:00
parent c431549e21
commit 590177bc88
1 changed files with 1 additions and 1 deletions

View File

@ -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