]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
In unpackevent, get the direct object (----) before asking for missed parameters.
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 22 Jan 1999 13:23:12 +0000 (13:23 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 22 Jan 1999 13:23:12 +0000 (13:23 +0000)
The documentation is unclear on this, but the old implementation caused problems
with Default Folder.

Mac/Lib/lib-toolbox/aetools.py

index dde82b59d8f193b1654c3f423d629a815f566a5b..792cb728fa69df257eb8496d9220f21211e0d7ee 100644 (file)
@@ -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