mirror of
https://github.com/python/cpython.git
synced 2025-07-30 22:54:16 +00:00
Deprecate the imputil module for removal in 3.0.
This commit is contained in:
parent
f8105ceec7
commit
80bb9d92e3
4 changed files with 27 additions and 1 deletions
|
@ -4,6 +4,10 @@
|
||||||
|
|
||||||
.. module:: imputil
|
.. module:: imputil
|
||||||
:synopsis: Manage and augment the import process.
|
:synopsis: Manage and augment the import process.
|
||||||
|
:deprecated:
|
||||||
|
|
||||||
|
.. deprecated:: 2.6
|
||||||
|
The module has been removed in Python 3.0.
|
||||||
|
|
||||||
|
|
||||||
.. index:: statement: import
|
.. index:: statement: import
|
||||||
|
|
|
@ -9,6 +9,9 @@ Exported classes:
|
||||||
|
|
||||||
DynLoadSuffixImporter
|
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
|
# note: avoid importing non-builtin modules
|
||||||
import imp ### not available in JPython?
|
import imp ### not available in JPython?
|
||||||
|
|
|
@ -126,7 +126,7 @@ class TestPy3KWarnings(unittest.TestCase):
|
||||||
|
|
||||||
class TestStdlibRemovals(unittest.TestCase):
|
class TestStdlibRemovals(unittest.TestCase):
|
||||||
|
|
||||||
all_platforms = ('audiodev',)
|
all_platforms = ('audiodev', 'imputil')
|
||||||
|
|
||||||
def check_removal(self, module_name):
|
def check_removal(self, module_name):
|
||||||
"""Make sure the specified module, when imported, raises a
|
"""Make sure the specified module, when imported, raises a
|
||||||
|
|
19
Misc/NEWS
19
Misc/NEWS
|
@ -4,6 +4,25 @@ Python News
|
||||||
|
|
||||||
(editors: check NEWS.help for information about editing NEWS using ReST.)
|
(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?
|
What's New in Python 2.6 alpha 3?
|
||||||
=================================
|
=================================
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue