merge 3.1
This commit is contained in:
commit
619323c68f
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue