summaryrefslogtreecommitdiffstats
path: root/Lib/ihooks.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-05-10 22:45:07 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-05-10 22:45:07 (GMT)
commit27508d4eb98fba5e092a742fc241760b5f796985 (patch)
treebf66a8d90d8120ce18999e4fdb6bd40c70b4f3f7 /Lib/ihooks.py
parent2bca21223900bb8cc24177ad593611e8b317d2bf (diff)
downloadcpython-27508d4eb98fba5e092a742fc241760b5f796985.zip
cpython-27508d4eb98fba5e092a742fc241760b5f796985.tar.gz
cpython-27508d4eb98fba5e092a742fc241760b5f796985.tar.bz2
Deprecate ihooks for removal in 3.0.
Diffstat (limited to 'Lib/ihooks.py')
-rw-r--r--Lib/ihooks.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/ihooks.py b/Lib/ihooks.py
index f5b93ab..86b0f65 100644
--- a/Lib/ihooks.py
+++ b/Lib/ihooks.py
@@ -49,7 +49,9 @@ by the way the __import__ hook is used by the Python interpreter.) It
would also do wise to install a different version of reload().
"""
-
+from warnings import warnpy3k
+warnpy3k("the ihooks module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
import __builtin__
import imp