commit | 6dba6bc0a226c2dd384d9311b9ad842be653c2b5 | [log] [tgz] |
---|---|---|
author | Jack Jansen <jack.jansen@cwi.nl> | Sat Aug 25 11:53:43 2001 +0000 |
committer | Jack Jansen <jack.jansen@cwi.nl> | Sat Aug 25 11:53:43 2001 +0000 |
tree | 04031338c38a9b7a5750c960d6eb5afdc80c78f4 | |
parent | 6af5bbb5653a9b77102369d60fb18d3bc896bf92 [diff] [blame] |
Step 2 in putting the MacOS toolbox modules in a package: issue a DepracationWarning in the compatibility modules.
diff --git a/Mac/Lib/lib-compat/QuickTime.py b/Mac/Lib/lib-compat/QuickTime.py index 80e1bcc..e80bdba 100644 --- a/Mac/Lib/lib-compat/QuickTime.py +++ b/Mac/Lib/lib-compat/QuickTime.py
@@ -1 +1,4 @@ +import warnings +warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__), + DeprecationWarning, stacklevel=2) from Carbon.QuickTime import *