]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport of 1.20:
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 25 Mar 2002 10:25:56 +0000 (10:25 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 25 Mar 2002 10:25:56 +0000 (10:25 +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, in stead calling the missing routine will raise an exception.

Should finally fix 531398. 2.2.1 candidate.

Also blacklisted some constants with definitions that were not Python-compatible.

Mac/Modules/win/winscan.py

index 82f44418c0625fff3e7b3a57f3e3308344fe2bff..c6ba7ec0f8d70c3e234939190661d2aea2f27b3e 100644 (file)
@@ -32,6 +32,8 @@ class MyScanner(Scanner):
 
        def writeinitialdefs(self):
                self.defsfile.write("def FOUR_CHAR_CODE(x): return x\n")
+               self.defsfile.write("false = 0\n")
+               self.defsfile.write("true = 1\n")
 
        def makeblacklistnames(self):
                return [