[Python-checkins] CVS: python/dist/src/Mac/Modules/win winscan.py,1.19,1.20
Jack Jansen
jackjansen@users.sourceforge.net
Sun, 24 Mar 2002 15:01:18 -0800
Update of /cvsroot/python/python/dist/src/Mac/Modules/win
In directory usw-pr-cvs1:/tmp/cvs-serv16135/Python/Mac/Modules/win
Modified Files:
winscan.py
Log Message:
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.
Index: winscan.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/win/winscan.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** winscan.py 18 Dec 2001 15:38:54 -0000 1.19
--- winscan.py 24 Mar 2002 23:01:16 -0000 1.20
***************
*** 33,36 ****
--- 33,38 ----
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):