[Python-checkins] CVS: python/dist/src/Mac/Lib/lib-compat Help.py,1.1,1.2

Jack Jansen jackjansen@users.sourceforge.net
Sat, 25 Aug 2001 04:53:21 -0700


Update of /cvsroot/python/python/dist/src/Mac/Lib/lib-compat
In directory usw-pr-cvs1:/tmp/cvs-serv16325/Python/Mac/Lib/lib-compat

Modified Files:
	Help.py 
Log Message:
Step 2 in putting the MacOS toolbox modules in a package: issue a DepracationWarning in the compatibility modules.

Index: Help.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Lib/lib-compat/Help.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Help.py	2001/08/19 22:28:12	1.1
--- Help.py	2001/08/25 11:53:19	1.2
***************
*** 1 ****
--- 1,4 ----
+ import warnings
+ warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+ 	DeprecationWarning, stacklevel=2)
  from Carbon.Help import *