From: Jack Jansen Date: Sat, 1 Sep 2001 23:38:50 +0000 (+0000) Subject: Don't call PyMac_HandleEvent if we're in unix-Python. X-Git-Tag: v2.2a3~168 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62d24a0f50db4b959ef32ac0e7b9946cc045ca08;p=thirdparty%2FPython%2Fcpython.git Don't call PyMac_HandleEvent if we're in unix-Python. --- diff --git a/Mac/Modules/ae/_AEmodule.c b/Mac/Modules/ae/_AEmodule.c index 6b6e7dccf75c..defa29246efa 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 7a00986a68be..c12e5b6f5714 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; }