Renamed the ConfigParser module to 'configparser'.

This commit is contained in:
Alexandre Vassalotti 2008-05-14 22:07:07 +00:00
parent 1b9df6862a
commit e3a23c0734
4 changed files with 13 additions and 1 deletions

View 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

View File

@ -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:

View File

@ -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.