Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
80bb9d92
Commit
80bb9d92
authored
May 08, 2008
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate the imputil module for removal in 3.0.
parent
f8105cee
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
1 deletion
+27
-1
Doc/library/imputil.rst
Doc/library/imputil.rst
+4
-0
Lib/imputil.py
Lib/imputil.py
+3
-0
Lib/test/test_py3kwarn.py
Lib/test/test_py3kwarn.py
+1
-1
Misc/NEWS
Misc/NEWS
+19
-0
No files found.
Doc/library/imputil.rst
View file @
80bb9d92
...
...
@@ -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
...
...
Lib/imputil.py
View file @
80bb9d92
...
...
@@ -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?
...
...
Lib/test/test_py3kwarn.py
View file @
80bb9d92
...
...
@@ -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
...
...
Misc/NEWS
View file @
80bb9d92
...
...
@@ -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?
=================================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment