diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1999-01-22 13:23:12 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1999-01-22 13:23:12 (GMT) |
commit | 90c3c164e0846eb673012cd2eb14357d7e3a71ea (patch) | |
tree | a4dd44e7590bd5b5c70aea4ce40081e570dfa47f /Mac/Lib | |
parent | d61f92bab39a706ab954199ab39bc72a67bbdbdd (diff) | |
download | cpython-90c3c164e0846eb673012cd2eb14357d7e3a71ea.zip cpython-90c3c164e0846eb673012cd2eb14357d7e3a71ea.tar.gz cpython-90c3c164e0846eb673012cd2eb14357d7e3a71ea.tar.bz2 |
In unpackevent, get the direct object (----) before asking for missed parameters.
The documentation is unclear on this, but the old implementation caused problems
with Default Folder.
Diffstat (limited to 'Mac/Lib')
-rw-r--r-- | Mac/Lib/lib-toolbox/aetools.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Mac/Lib/lib-toolbox/aetools.py b/Mac/Lib/lib-toolbox/aetools.py index dde82b5..792cb72 100644 --- a/Mac/Lib/lib-toolbox/aetools.py +++ b/Mac/Lib/lib-toolbox/aetools.py @@ -58,6 +58,13 @@ def missed(ae): def unpackevent(ae): parameters = {} + try: + dirobj = ae.AEGetParamDesc('----', '****') + except AE.Error: + pass + else: + parameters['----'] = unpack(dirobj) + del dirobj while 1: key = missed(ae) if not key: break |