]> granicus.if.org Git - python/commitdiff
Deprecate the imputil module for removal in 3.0.
authorBrett Cannon <bcannon@gmail.com>
Thu, 8 May 2008 18:15:14 +0000 (18:15 +0000)
committerBrett Cannon <bcannon@gmail.com>
Thu, 8 May 2008 18:15:14 +0000 (18:15 +0000)
Doc/library/imputil.rst
Lib/imputil.py
Lib/test/test_py3kwarn.py
Misc/NEWS

index 34117fab0f0f41f8ea85ae08a1f9a73b4b4ef099..f10e83d3086e462a36e78bbcefdf5ef9c3e3388c 100644 (file)
@@ -4,6 +4,10 @@
 
 .. module:: imputil
    :synopsis: Manage and augment the import process.
+   :deprecated:
+
+.. deprecated:: 2.6
+   The module has been removed in Python 3.0.
 
 
 .. index:: statement: import
index 675a634db306b061f10b32cffe5aea209b516cf8..0eba43544e07c5e611bdaff93c0cb5f532355304 100644 (file)
@@ -9,6 +9,9 @@ Exported classes:
 
     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?
index 2850bf2b5b963cc5861d483bc546981c34b2d799..0b0b92d8d658d02587d5ca8ca1ab5d4cf4b4dc54 100644 (file)
@@ -126,7 +126,7 @@ class TestPy3KWarnings(unittest.TestCase):
 
 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
index 4a193945eb5806b30d3ce8b0f00d0b6d434dc749..7d634b660903275f85fb3c976f1d9edf203ed939 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -4,6 +4,25 @@ Python News
 
 (editors: check NEWS.help for information about editing NEWS using ReST.)
 
+What's New in Python 2.6 beta 1?
+================================
+
+*Release date: XX-June-2008*
+
+Core and Builtins
+-----------------
+
+Extension Modules
+-----------------
+
+Library
+-------
+
+- The imputil module has been deprecated for removal in Python 3.0.
+
+Build
+-----
+
 What's New in Python 2.6 alpha 3?
 =================================