[Python-checkins] python/dist/src/Mac/Lib aetools.py,1.2.14.1,1.2.14.2
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Fri, 25 Oct 2002 13:36:58 -0700
Update of /cvsroot/python/python/dist/src/Mac/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv24473
Modified Files:
Tag: release22-maint
aetools.py
Log Message:
Backport of 1.5:
Under Jaguar it seems that 'errn' return value keyword parameters don't
(or don't always?) show up with missed(). I think this is a bug in
Jaguar, but as it is a potential dangerous problem (the OSA event has
failed, but the Python code isn't told about this and happily continues)
this is a quick workaround.
Index: aetools.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Lib/aetools.py,v
retrieving revision 1.2.14.1
retrieving revision 1.2.14.2
diff -C2 -d -r1.2.14.1 -r1.2.14.2
*** aetools.py 24 Feb 2002 22:48:51 -0000 1.2.14.1
--- aetools.py 25 Oct 2002 20:36:53 -0000 1.2.14.2
***************
*** 66,69 ****
--- 66,77 ----
parameters['----'] = unpack(dirobj)
del dirobj
+ # Workaround for what I feel is a bug in OSX 10.2: 'errn' won't show up in missed...
+ try:
+ dirobj = ae.AEGetParamDesc('errn', '****')
+ except AE.Error:
+ pass
+ else:
+ parameters['errn'] = unpack(dirobj, formodulename)
+ del dirobj
while 1:
key = missed(ae)