mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Renamed the ConfigParser module to 'configparser'.
This commit is contained in:
parent
1b9df6862a
commit
e3a23c0734
4 changed files with 13 additions and 1 deletions
8
Lib/lib-old/ConfigParser.py
Normal file
8
Lib/lib-old/ConfigParser.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
import sys
|
||||
from warnings import warnpy3k
|
||||
|
||||
warnpy3k("the ConfigParser module has been renamed "
|
||||
"to 'configparser' in Python 3.0", stacklevel=2)
|
||||
|
||||
import configparser
|
||||
sys.modules[__name__] = configparser
|
|
@ -203,7 +203,8 @@ class TestStdlibRemovals(unittest.TestCase):
|
|||
class TestStdlibRenames(unittest.TestCase):
|
||||
|
||||
renames = {'copy_reg': 'copyreg', 'Queue': 'queue',
|
||||
'SocketServer': 'socketserver'}
|
||||
'SocketServer': 'socketserver',
|
||||
'ConfigParser': 'configparser'}
|
||||
|
||||
def check_rename(self, module_name, new_module_name):
|
||||
"""Make sure that:
|
||||
|
|
|
@ -32,6 +32,9 @@ Extension Modules
|
|||
Library
|
||||
-------
|
||||
|
||||
- The ConfigParser module has been renamed 'configparser'. The old
|
||||
name is now deprecated.
|
||||
|
||||
- The CL, CL_old, and cl modules for IRIX have been deprecated for removal in
|
||||
Python 3.0.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue