]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport of 1.7:
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 25 Mar 2002 10:23:56 +0000 (10:23 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 25 Mar 2002 10:23:56 +0000 (10:23 +0000)
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, inAlso blacklisted some constants with definitions that were not Python-compatible.

Mac/Modules/cf/cfscan.py

index 3e09df4e3f38587ec10a2028253f9fdeb6c122bf..be11dba7ea721f04df8bce245c56729aeaba56eb 100644 (file)
@@ -95,6 +95,7 @@ class MyScanner(Scanner_OSX):
                        "CFStringCreateMutableWithExternalCharactersNoCopy", # Not a clue...
                        "CFStringSetExternalCharactersNoCopy",
                        "CFStringGetCharacterAtIndex", # No format for single unichars yet.
+                       "kCFStringEncodingInvalidId", # incompatible constant declaration
                        ]
 
        def makegreylist(self):