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

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


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

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

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