diff options
| author | Jack Jansen <jack.jansen@cwi.nl> | 2003-11-19 16:34:04 +0000 |
|---|---|---|
| committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-11-19 16:34:04 +0000 |
| commit | a53f4eba19856613a55ccbcfdb8c862d24a691b9 (patch) | |
| tree | 55e8e3616059daa41c666e3b0abd92ed8a0efd43 /Mac/Modules/ae | |
| parent | 9588770e25db99692f3ebb680235bc1a02b65017 (diff) | |
| download | cpython-git-a53f4eba19856613a55ccbcfdb8c862d24a691b9.tar.gz | |
Getting rid of code conditional on TARGET_API_MAC_*.
Diffstat (limited to 'Mac/Modules/ae')
| -rw-r--r-- | Mac/Modules/ae/_AEmodule.c | 9 | ||||
| -rw-r--r-- | Mac/Modules/ae/aesupport.py | 6 |
2 files changed, 0 insertions, 15 deletions
diff --git a/Mac/Modules/ae/_AEmodule.c b/Mac/Modules/ae/_AEmodule.c index 91364e7b23..fd6582b74a 100644 --- a/Mac/Modules/ae/_AEmodule.c +++ b/Mac/Modules/ae/_AEmodule.c @@ -20,9 +20,6 @@ }} while(0) -#ifndef PyDoc_STR -#define PyDoc_STR(x) (x) -#endif #include <Carbon/Carbon.h> #ifdef USE_TOOLBOX_OBJECT_GLUE @@ -44,12 +41,6 @@ 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 96d1ccf2d6..17184db473 100644 --- a/Mac/Modules/ae/aesupport.py +++ b/Mac/Modules/ae/aesupport.py @@ -103,12 +103,6 @@ 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; } |
