mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
First part of fix for #493826: if 'errn' key exists in return value this doesn't necesarily signal an error, only if the value is non-zero it does. This
does not correspond with my reading of the documentation, but the OSX Finder can return 'errn'=0, and it knows better than me:-) Bugfix candidate.
This commit is contained in:
parent
1b0bf9b761
commit
18983536dc
1 changed files with 1 additions and 1 deletions
|
|
@ -498,7 +498,7 @@ def compileevent(fp, event, enumsneeded):
|
|||
#
|
||||
# Error handling
|
||||
#
|
||||
fp.write("\t\tif _arguments.has_key('errn'):\n")
|
||||
fp.write("\t\tif _arguments.get('errn', 0):\n")
|
||||
fp.write("\t\t\traise aetools.Error, aetools.decodeerror(_arguments)\n")
|
||||
fp.write("\t\t# XXXX Optionally decode result\n")
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue