[Python-checkins] CVS: python/dist/src/Mac/Modules/win winsupport.py,1.28,1.28.2.1
Jack Jansen
jackjansen@users.sourceforge.net
Thu, 29 Nov 2001 05:32:36 -0800
Update of /cvsroot/python/python/dist/src/Mac/Modules/win
In directory usw-pr-cvs1:/tmp/cvs-serv26090/Python/Mac/Modules/win
Modified Files:
Tag: r22b2-branch
winsupport.py
Log Message:
Use the WeakLink generators where it makes sense. This allows the resulting module to be imported on older versions of MacOS that do not support all routines encasulated in the module. Using a routine thats unavailable results in a RuntimeError, "Routine not available on this platform".
Index: winsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/win/winsupport.py,v
retrieving revision 1.28
retrieving revision 1.28.2.1
diff -C2 -d -r1.28 -r1.28.2.1
*** winsupport.py 2001/11/05 16:16:15 1.28
--- winsupport.py 2001/11/29 13:32:34 1.28.2.1
***************
*** 196,201 ****
# Create the generator classes used to populate the lists
! Function = OSErrFunctionGenerator
! Method = OSErrMethodGenerator
# Create and populate the lists
--- 196,201 ----
# Create the generator classes used to populate the lists
! Function = OSErrWeakLinkFunctionGenerator
! Method = OSErrWeakLinkMethodGenerator
# Create and populate the lists