Getting rid of pre-Carbon (MacOS8) support. All code depending on
TARGET_API_MAC_OS8 (or !TARGET_API_MAC_CARBON) is gone. Also some
TARGET_API_MAC_OSX conditional code is gone, because it is no longer
used on OSX-only Python (only in MacPython-OS9).
diff --git a/Mac/Modules/evt/evtscan.py b/Mac/Modules/evt/evtscan.py
index 0c0ff49..e5762d9 100644
--- a/Mac/Modules/evt/evtscan.py
+++ b/Mac/Modules/evt/evtscan.py
@@ -36,21 +36,6 @@
listname = "methods"
return classname, listname
- def makegreylist(self):
- return [
- ('#if !TARGET_API_MAC_CARBON', [
- 'SystemEvent',
- 'SystemTask',
- 'SystemClick',
- 'GetOSEvent',
- 'OSEventAvail',
- ]),
- ('#if TARGET_API_MAC_CARBON', [
- 'CheckEventQueueForUserCancel',
- 'GetCurrentKeyModifiers',
- 'GetGlobalMouse',
- ])]
-
def makeblacklistnames(self):
return [
"KeyTranslate",
@@ -58,6 +43,12 @@
"WaitNextEvent", # Manually generated because of optional region
# Constants with funny definitions
"osEvtMessageMask",
+ # OS8 calls
+ 'SystemEvent',
+ 'SystemTask',
+ 'SystemClick',
+ 'GetOSEvent',
+ 'OSEventAvail',
]
def makeblacklisttypes(self):