Kaydet (Commit) e3a23c07 authored tarafından Alexandre Vassalotti's avatar Alexandre Vassalotti

Renamed the ConfigParser module to 'configparser'.

üst 1b9df686
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): ...@@ -203,7 +203,8 @@ class TestStdlibRemovals(unittest.TestCase):
class TestStdlibRenames(unittest.TestCase): class TestStdlibRenames(unittest.TestCase):
renames = {'copy_reg': 'copyreg', 'Queue': 'queue', renames = {'copy_reg': 'copyreg', 'Queue': 'queue',
'SocketServer': 'socketserver'} 'SocketServer': 'socketserver',
'ConfigParser': 'configparser'}
def check_rename(self, module_name, new_module_name): def check_rename(self, module_name, new_module_name):
"""Make sure that: """Make sure that:
......
...@@ -32,6 +32,9 @@ Extension Modules ...@@ -32,6 +32,9 @@ Extension Modules
Library 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 - The CL, CL_old, and cl modules for IRIX have been deprecated for removal in
Python 3.0. Python 3.0.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment