]> granicus.if.org Git - python/commitdiff
Renamed the ConfigParser module to 'configparser'.
authorAlexandre Vassalotti <alexandre@peadrop.com>
Wed, 14 May 2008 22:07:07 +0000 (22:07 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Wed, 14 May 2008 22:07:07 +0000 (22:07 +0000)
Lib/configparser.py [moved from Lib/ConfigParser.py with 100% similarity]
Lib/lib-old/ConfigParser.py [new file with mode: 0644]
Lib/test/test_py3kwarn.py
Misc/NEWS

similarity index 100%
rename from Lib/ConfigParser.py
rename to Lib/configparser.py
diff --git a/Lib/lib-old/ConfigParser.py b/Lib/lib-old/ConfigParser.py
new file mode 100644 (file)
index 0000000..b686cc4
--- /dev/null
@@ -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
index 78dd53d85770e21a71f1c7c6bba0233606a0ac07..e62228425a6984fdf363c08d813a646114e0a1c5 100644 (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:
index 71d34cdc75b7c2c8cdecfe61784df46ba766d253..ebcaedab26b471e088ee94b477b46bf496dcaaf9 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.