[Python-checkins] CVS: python/dist/src/Mac/Modules/ctl ctlsupport.py,1.42,1.42.8.1

Jack Jansen jackjansen@users.sourceforge.net
Thu, 29 Nov 2001 05:32:54 -0800


Update of /cvsroot/python/python/dist/src/Mac/Modules/ctl
In directory usw-pr-cvs1:/tmp/cvs-serv26218/Python/Mac/Modules/ctl

Modified Files:
      Tag: r22b2-branch
	ctlsupport.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: ctlsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/ctl/ctlsupport.py,v
retrieving revision 1.42
retrieving revision 1.42.8.1
diff -C2 -d -r1.42 -r1.42.8.1
*** ctlsupport.py	2001/09/05 10:31:42	1.42
--- ctlsupport.py	2001/11/29 13:32:52	1.42.8.1
***************
*** 337,342 ****
  
  # Create the generator classes used to populate the lists
! Function = OSErrFunctionGenerator
! Method = OSErrMethodGenerator
  
  # Create and populate the lists
--- 337,342 ----
  
  # Create the generator classes used to populate the lists
! Function = OSErrWeakLinkFunctionGenerator
! Method = OSErrWeakLinkMethodGenerator
  
  # Create and populate the lists