diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-04-23 21:03:21 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-04-23 21:03:21 (GMT) |
commit | 18983536dcb1b430934f345dc1d95aaadbafa2c0 (patch) | |
tree | 2b509b58c21edf2534f0a343df3ebb3b67db01c8 /Mac | |
parent | 1b0bf9b7616a5d8b624ccb1670c7b71fa0850209 (diff) | |
download | cpython-18983536dcb1b430934f345dc1d95aaadbafa2c0.zip cpython-18983536dcb1b430934f345dc1d95aaadbafa2c0.tar.gz cpython-18983536dcb1b430934f345dc1d95aaadbafa2c0.tar.bz2 |
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.
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/scripts/gensuitemodule.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/scripts/gensuitemodule.py b/Mac/scripts/gensuitemodule.py index 4f2ddc0..3e23661 100644 --- a/Mac/scripts/gensuitemodule.py +++ b/Mac/scripts/gensuitemodule.py @@ -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") # |