Deprecate the imputil module for removal in 3.0.
diff --git a/Lib/imputil.py b/Lib/imputil.py
index 675a634..0eba435 100644
--- a/Lib/imputil.py
+++ b/Lib/imputil.py
@@ -9,6 +9,9 @@
DynLoadSuffixImporter
"""
+from warnings import warnpy3k
+warnpy3k("the imputil module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
# note: avoid importing non-builtin modules
import imp ### not available in JPython?
diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py
index 2850bf2..0b0b92d 100644
--- a/Lib/test/test_py3kwarn.py
+++ b/Lib/test/test_py3kwarn.py
@@ -126,7 +126,7 @@
class TestStdlibRemovals(unittest.TestCase):
- all_platforms = ('audiodev',)
+ all_platforms = ('audiodev', 'imputil')
def check_removal(self, module_name):
"""Make sure the specified module, when imported, raises a