diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-14 22:07:07 +0000 |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-14 22:07:07 +0000 |
commit | e3a23c0734a8a6d4417e869c20e501771dab8a81 (patch) | |
tree | ccc487aa556740b4767078c4f4f02dd5ddd42dda | |
parent | 1b9df6862ac9c1faf2f2c5a9238241785001e10b (diff) | |
download | cpython-git-e3a23c0734a8a6d4417e869c20e501771dab8a81.tar.gz |
Renamed the ConfigParser module to 'configparser'.
-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. |