diff options
-rw-r--r-- | Lib/configparser.py (renamed from Lib/ConfigParser.py) | 0 | ||||
-rw-r--r-- | Lib/lib-old/ConfigParser.py | 8 | ||||
-rw-r--r-- | Lib/test/test_py3kwarn.py | 3 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
4 files changed, 13 insertions, 1 deletions
diff --git a/Lib/ConfigParser.py b/Lib/configparser.py index 65c6ae2ae3..65c6ae2ae3 100644 --- a/Lib/ConfigParser.py +++ b/Lib/configparser.py diff --git a/Lib/lib-old/ConfigParser.py b/Lib/lib-old/ConfigParser.py new file mode 100644 index 0000000000..b686cc4903 --- /dev/null +++ b/Lib/lib-old/ConfigParser.py @@ -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 diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index 78dd53d857..e62228425a 100644 --- a/Lib/test/test_py3kwarn.py +++ b/Lib/test/test_py3kwarn.py @@ -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. |