diff options
| author | Jack Jansen <jack.jansen@cwi.nl> | 2001-08-25 11:53:43 (GMT) |
|---|---|---|
| committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-08-25 11:53:43 (GMT) |
| commit | 6dba6bc0a226c2dd384d9311b9ad842be653c2b5 (patch) | |
| tree | 04031338c38a9b7a5750c960d6eb5afdc80c78f4 /Mac/Lib/lib-compat/Events.py | |
| parent | 6af5bbb5653a9b77102369d60fb18d3bc896bf92 (diff) | |
| download | cpython-6dba6bc0a226c2dd384d9311b9ad842be653c2b5.zip cpython-6dba6bc0a226c2dd384d9311b9ad842be653c2b5.tar.gz cpython-6dba6bc0a226c2dd384d9311b9ad842be653c2b5.tar.bz2 | |
Step 2 in putting the MacOS toolbox modules in a package: issue a DepracationWarning in the compatibility modules.
Diffstat (limited to 'Mac/Lib/lib-compat/Events.py')
| -rw-r--r-- | Mac/Lib/lib-compat/Events.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Mac/Lib/lib-compat/Events.py b/Mac/Lib/lib-compat/Events.py index 47b3834..a3d14b3 100644 --- a/Mac/Lib/lib-compat/Events.py +++ b/Mac/Lib/lib-compat/Events.py @@ -1 +1,4 @@ +import warnings +warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__), + DeprecationWarning, stacklevel=2) from Carbon.Events import * |
