diff options
Diffstat (limited to 'Lib/configparser.py')
-rw-r--r-- | Lib/configparser.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/configparser.py b/Lib/configparser.py index 5e36cc9600..f2e644c1ad 100644 --- a/Lib/configparser.py +++ b/Lib/configparser.py @@ -88,6 +88,7 @@ ConfigParser -- responsible for parsing a list of """ import re +from collections import OrderedDict __all__ = ["NoSectionError", "DuplicateSectionError", "NoOptionError", "InterpolationError", "InterpolationDepthError", @@ -215,7 +216,7 @@ class MissingSectionHeaderError(ParsingError): class RawConfigParser: - def __init__(self, defaults=None, dict_type=dict): + def __init__(self, defaults=None, dict_type=OrderedDict): self._dict = dict_type self._sections = self._dict() self._defaults = self._dict() |