[Python-checkins] CVS: python/dist/src/Mac/Modules/menu menusupport.py,1.12,1.12.8.1

Jack Jansen jackjansen@users.sourceforge.net
2001年11月29日 05:32:41 -0800


Update of /cvsroot/python/python/dist/src/Mac/Modules/menu
In directory usw-pr-cvs1:/tmp/cvs-serv26124/Python/Mac/Modules/menu
Modified Files:
 Tag: r22b2-branch
	menusupport.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: menusupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/menu/menusupport.py,v
retrieving revision 1.12
retrieving revision 1.12.8.1
diff -C2 -d -r1.12 -r1.12.8.1
*** menusupport.py	2001年08月23日 13:50:01	1.12
--- menusupport.py	2001年11月29日 13:32:39	1.12.8.1
***************
*** 82,87 ****
 
 # Create the generator classes used to populate the lists
! Function = OSErrFunctionGenerator
! Method = OSErrMethodGenerator
 
 # Create and populate the lists
--- 82,87 ----
 
 # Create the generator classes used to populate the lists
! Function = OSErrWeakLinkFunctionGenerator
! Method = OSErrWeakLinkMethodGenerator
 
 # Create and populate the lists

AltStyle によって変換されたページ (->オリジナル) /