[Python-checkins] CVS: python/dist/src/Mac/Lib/lib-compat List.py,1.1,1.2
Jack Jansen
jackjansen@users.sourceforge.net
Sat, 25 Aug 2001 04:49:28 -0700
Update of /cvsroot/python/python/dist/src/Mac/Lib/lib-compat
In directory usw-pr-cvs1:/tmp/cvs-serv15118/Python/Mac/Lib/lib-compat
Modified Files:
List.py
Log Message:
Step 2 in putting the MacOS toolbox modules in a package: issue a DepracationWarning in the compatibility modules.
Index: List.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Lib/lib-compat/List.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** List.py 2001/08/20 15:35:39 1.1
--- List.py 2001/08/25 11:49:26 1.2
***************
*** 1 ****
--- 1,4 ----
+ import warnings
+ warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+ DeprecationWarning, stacklevel=2)
from Carbon.List import *