diff options
| author | Jack Jansen <jack.jansen@cwi.nl> | 2002-03-25 10:25:56 +0000 |
|---|---|---|
| committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-03-25 10:25:56 +0000 |
| commit | c629efaf91eaa5acf9756d33834b3c031fe7a373 (patch) | |
| tree | 7967439a6289371211c1fe0bcea1fe24b1e0464c /Mac | |
| parent | c165e53066ce2ebdfe9a99919c10572b6ed5415e (diff) | |
| download | cpython-git-c629efaf91eaa5acf9756d33834b3c031fe7a373.tar.gz | |
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.
Diffstat (limited to 'Mac')
| -rw-r--r-- | Mac/Modules/win/winscan.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Mac/Modules/win/winscan.py b/Mac/Modules/win/winscan.py index 82f44418c0..c6ba7ec0f8 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 [ |
