[Python-checkins] CVS: python/dist/src/Mac/Modules/dlg dlgsupport.py,1.26,1.26.2.1

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


Update of /cvsroot/python/python/dist/src/Mac/Modules/dlg
In directory usw-pr-cvs1:/tmp/cvs-serv26181/Python/Mac/Modules/dlg
Modified Files:
 Tag: r22b2-branch
	dlgsupport.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: dlgsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/dlg/dlgsupport.py,v
retrieving revision 1.26
retrieving revision 1.26.2.1
diff -C2 -d -r1.26 -r1.26.2.1
*** dlgsupport.py	2001年11月05日 16:16:39	1.26
--- dlgsupport.py	2001年11月29日 13:32:46	1.26.2.1
***************
*** 246,251 ****
 
 # Create the generator classes used to populate the lists
! Function = OSErrFunctionGenerator
! Method = OSErrMethodGenerator
 
 # Create and populate the lists
--- 246,251 ----
 
 # Create the generator classes used to populate the lists
! Function = OSErrWeakLinkFunctionGenerator
! Method = OSErrWeakLinkMethodGenerator
 
 # Create and populate the lists

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