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