diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/ConfigParser.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index 2f3ca51..3d44bb5 100644 --- a/Lib/ConfigParser.py +++ b/Lib/ConfigParser.py @@ -164,13 +164,14 @@ class ConfigParser: The section DEFAULT is special. """ try: - d = self.__sections[section].copy() + sectdict = self.__sections[section].copy() except KeyError: if section == DEFAULTSECT: - d = {} + sectdict = {} else: raise NoSectionError(section) - d.update(self.__defaults) + d = self.__defaults.copy() + d.update(sectdict) option = string.lower(option) try: rawval = d[option] |