summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-09-01 23:38:50 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-09-01 23:38:50 (GMT)
commit62d24a0f50db4b959ef32ac0e7b9946cc045ca08 (patch)
tree60efb600829ff899918e0283cf3790f81db950bf
parente9fb3d6db36f58ed3e9a06197fd25dfd9761320f (diff)
downloadcpython-62d24a0f50db4b959ef32ac0e7b9946cc045ca08.zip
cpython-62d24a0f50db4b959ef32ac0e7b9946cc045ca08.tar.gz
cpython-62d24a0f50db4b959ef32ac0e7b9946cc045ca08.tar.bz2
Don't call PyMac_HandleEvent if we're in unix-Python.
-rw-r--r--Mac/Modules/ae/_AEmodule.c2
-rw-r--r--Mac/Modules/ae/aesupport.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/Mac/Modules/ae/_AEmodule.c b/Mac/Modules/ae/_AEmodule.c
index 6b6e7dc..defa292 100644
--- a/Mac/Modules/ae/_AEmodule.c
+++ b/Mac/Modules/ae/_AEmodule.c
@@ -39,10 +39,12 @@ static pascal Boolean AEIdleProc(EventRecord *theEvent, long *sleepTime, RgnHand
{
if ( PyOS_InterruptOccurred() )
return 1;
+#if !TARGET_API_MAC_OSX
if ( PyMac_HandleEvent(theEvent) < 0 ) {
PySys_WriteStderr("Exception in user event handler during AE processing\n");
PyErr_Clear();
}
+#endif
return 0;
}
diff --git a/Mac/Modules/ae/aesupport.py b/Mac/Modules/ae/aesupport.py
index 7a00986..c12e5b6 100644
--- a/Mac/Modules/ae/aesupport.py
+++ b/Mac/Modules/ae/aesupport.py
@@ -105,10 +105,12 @@ static pascal Boolean AEIdleProc(EventRecord *theEvent, long *sleepTime, RgnHand
{
if ( PyOS_InterruptOccurred() )
return 1;
+#if !TARGET_API_MAC_OSX
if ( PyMac_HandleEvent(theEvent) < 0 ) {
PySys_WriteStderr("Exception in user event handler during AE processing\\n");
PyErr_Clear();
}
+#endif
return 0;
}