summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2008-05-14 22:07:07 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2008-05-14 22:07:07 (GMT)
commite3a23c0734a8a6d4417e869c20e501771dab8a81 (patch)
treeccc487aa556740b4767078c4f4f02dd5ddd42dda /Lib
parent1b9df6862ac9c1faf2f2c5a9238241785001e10b (diff)
downloadcpython-e3a23c0734a8a6d4417e869c20e501771dab8a81.zip
cpython-e3a23c0734a8a6d4417e869c20e501771dab8a81.tar.gz
cpython-e3a23c0734a8a6d4417e869c20e501771dab8a81.tar.bz2
Renamed the ConfigParser module to 'configparser'.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/configparser.py (renamed from Lib/ConfigParser.py)0
-rw-r--r--Lib/lib-old/ConfigParser.py8
-rw-r--r--Lib/test/test_py3kwarn.py3
3 files changed, 10 insertions, 1 deletions
diff --git a/Lib/ConfigParser.py b/Lib/configparser.py
index 65c6ae2..65c6ae2 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 0000000..b686cc4
--- /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 78dd53d..e622284 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: