Step 2 in putting the MacOS toolbox modules in a package: issue a DepracationWarning in the compatibility modules.

This commit is contained in:
Jack Jansen 2001-08-25 11:53:43 +00:00
parent 6af5bbb565
commit 6dba6bc0a2
45 changed files with 135 additions and 0 deletions

View file

@ -1 +1,4 @@
import warnings
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
DeprecationWarning, stacklevel=2)
from Carbon.Ctl import *