diff options
Diffstat (limited to 'Lib/ihooks.py')
-rw-r--r-- | Lib/ihooks.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/ihooks.py b/Lib/ihooks.py index f5b93ab9cf..86b0f65b63 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 |