Kaydet (Commit) 27508d4e authored tarafından Brett Cannon's avatar Brett Cannon

Deprecate ihooks for removal in 3.0.

üst 2bca2122
......@@ -22,6 +22,8 @@ Some of these are very old and/or not very robust; marked with "hmm."
:mod:`ihooks`
--- Import hook support (for :mod:`rexec`; may become obsolete).
.. warning:: The ihooks module has been removed in Python 3.0.
Platform specific modules
=========================
......
......@@ -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
......
......@@ -129,7 +129,8 @@ class TestStdlibRemovals(unittest.TestCase):
# test.testall not tested as it executes all unit tests as an
# import side-effect.
all_platforms = ('audiodev', 'imputil', 'mutex', 'user', 'new', 'rexec',
'Bastion', 'compiler', 'dircache', 'fpformat')
'Bastion', 'compiler', 'dircache', 'fpformat',
'ihooks')
inclusive_platforms = {'irix':('pure',)}
# XXX Don't know if lib-tk is only installed if _tkinter is built.
optional_modules = ('bsddb185', 'Canvas', 'dl')
......
......@@ -23,6 +23,8 @@ Extension Modules
Library
-------
- The ihooks module has been deprecated for removal in Python 3.0.
- The fpformat module has been deprecated for removal in Python 3.0.
- The dl module has been deprecated for removal in Python 3.0.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment