mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Deprecate ihooks for removal in 3.0.
This commit is contained in:
parent
2bca212239
commit
27508d4eb9
4 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue