mirror of
https://github.com/python/cpython.git
synced 2025-09-25 09:50:37 +00:00
merge 3.2
This commit is contained in:
commit
2ed7521e96
1 changed files with 1 additions and 1 deletions
|
@ -1358,7 +1358,7 @@ Files and Directories
|
||||||
|
|
||||||
try:
|
try:
|
||||||
fp = open("myfile")
|
fp = open("myfile")
|
||||||
except OSError as e:
|
except IOError as e:
|
||||||
if e.errno == errno.EACCESS:
|
if e.errno == errno.EACCESS:
|
||||||
return "some default data"
|
return "some default data"
|
||||||
# Not a permission error.
|
# Not a permission error.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue