mirror of https://github.com/python/cpython.git
this should actually be an IOError
This commit is contained in:
parent
249b508c98
commit
2340986fe0
|
@ -784,7 +784,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