From 3a5b0d8988491d9408b22bceea6fd70b91345724 Mon Sep 17 00:00:00 2001 From: John Reese Date: Tue, 5 Jun 2018 16:31:33 -0700 Subject: bpo-33504: Migrate configparser from OrderedDict to dict. (#6819) With 3.7+, dictionary are ordered by design. Configparser still uses collections.OrderedDict, which is unnecessary. This updates the module to use the standard dict implementation by default, and changes the docs and tests to match. --- Lib/test/test_configparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_configparser.py') diff --git a/Lib/test/test_configparser.py b/Lib/test/test_configparser.py index 87b811f09b..f4df622050 100644 --- a/Lib/test/test_configparser.py +++ b/Lib/test/test_configparser.py @@ -1109,7 +1109,7 @@ class RawConfigParserTestCase(BasicTestCase, unittest.TestCase): self.assertEqual(cf.get(123, 'this is sick'), True) if cf._dict is configparser._default_dict: # would not work for SortedDict; only checking for the most common - # default dictionary (OrderedDict) + # default dictionary (dict) cf.optionxform = lambda x: x cf.set('non-string', 1, 1) self.assertEqual(cf.get('non-string', 1), 1) -- cgit v1.2.1