From: Jack Jansen Date: Mon, 25 Mar 2002 10:25:56 +0000 (+0000) Subject: Backport of 1.20: X-Git-Tag: v2.2.1c2~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c629efaf91eaa5acf9756d33834b3c031fe7a373;p=thirdparty%2FPython%2Fcpython.git Backport of 1.20: 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. --- diff --git a/Mac/Modules/win/winscan.py b/Mac/Modules/win/winscan.py index 82f44418c062..c6ba7ec0f8d7 100644 --- a/Mac/Modules/win/winscan.py +++ b/Mac/Modules/win/winscan.py @@ -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 [