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

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


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

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

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