Commit 619323c6 authored by Benjamin Peterson's avatar Benjamin Peterson

merge 3.1

parents c7dd737e 2340986f
......@@ -907,7 +907,7 @@ Files and Directories
try:
fp = open("myfile")
except OSError as e:
except IOError as e:
if e.errno == errno.EACCESS:
return "some default data"
# Not a permission error.
......
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