Commit 18ce79ca authored by Guido van Rossum's avatar Guido van Rossum

open() now raises IOError, not RuntimeError!

parent 67e72a14
...@@ -311,7 +311,7 @@ def try_open(file): ...@@ -311,7 +311,7 @@ def try_open(file):
for dir in INFOPATH: for dir in INFOPATH:
try: try:
return open(dir + file, 'r') return open(dir + file, 'r')
except RuntimeError: except IOError:
pass pass
raise NoSuchFile, file 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