this should actually be an IOError

This commit is contained in:
Benjamin Peterson 2011-05-20 11:49:06 -05:00
parent 30e10d8114
commit ce77defd84
1 changed files with 1 additions and 1 deletions

View File

@ -928,7 +928,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.