summaryrefslogtreecommitdiff
path: root/Mac/Lib/lib-compat/ControlAccessor.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-08-25 11:53:43 +0000
committerJack Jansen <jack.jansen@cwi.nl>2001-08-25 11:53:43 +0000
commit6dba6bc0a226c2dd384d9311b9ad842be653c2b5 (patch)
tree04031338c38a9b7a5750c960d6eb5afdc80c78f4 /Mac/Lib/lib-compat/ControlAccessor.py
parent6af5bbb5653a9b77102369d60fb18d3bc896bf92 (diff)
downloadcpython-git-6dba6bc0a226c2dd384d9311b9ad842be653c2b5.tar.gz
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/ControlAccessor.py')
-rw-r--r--Mac/Lib/lib-compat/ControlAccessor.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mac/Lib/lib-compat/ControlAccessor.py b/Mac/Lib/lib-compat/ControlAccessor.py
index 29019f8b13..5859da68ca 100644
--- a/Mac/Lib/lib-compat/ControlAccessor.py
+++ b/Mac/Lib/lib-compat/ControlAccessor.py
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+ DeprecationWarning, stacklevel=2)
from Carbon.ControlAccessor import *