summaryrefslogtreecommitdiff
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-10-25 20:36:53 +0000
committerJack Jansen <jack.jansen@cwi.nl>2002-10-25 20:36:53 +0000
commite401b216dfcf77a2a3282a7667691c4a83b5f4d4 (patch)
tree7844ad688e0314037808b6117f92347694b2301e /Mac
parentb8a1fe4ed3e9089ac9092e394a1eb45cf57d8459 (diff)
downloadcpython-git-e401b216dfcf77a2a3282a7667691c4a83b5f4d4.tar.gz
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.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Lib/aetools.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Mac/Lib/aetools.py b/Mac/Lib/aetools.py
index ba42f03c1b..bf9383c0d3 100644
--- a/Mac/Lib/aetools.py
+++ b/Mac/Lib/aetools.py
@@ -65,6 +65,14 @@ def unpackevent(ae):
else:
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)
if not key: break