Commit 590177bc authored by Guido van Rossum's avatar Guido van Rossum

open() now raises IOError, not RuntimeError!

parent c431549e
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment