a copy of the defaults dictionary and merges the section's dictionary
into it so that sections can override the defaults.
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]