summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1999-01-22 13:23:12 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1999-01-22 13:23:12 (GMT)
commit90c3c164e0846eb673012cd2eb14357d7e3a71ea (patch)
treea4dd44e7590bd5b5c70aea4ce40081e570dfa47f /Mac/Lib
parentd61f92bab39a706ab954199ab39bc72a67bbdbdd (diff)
downloadcpython-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.py7
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