From c629efaf91eaa5acf9756d33834b3c031fe7a373 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Mon, 25 Mar 2002 10:25:56 +0000 Subject: [PATCH] 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. --- Mac/Modules/win/winscan.py | 2 ++ 1 file changed, 2 insertions(+) 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 [ -- 2.47.3