Closes #11324: ConfigParser(interpolation=None) doesn't work.

Initial patches by Tobias Brink. Thanks!
This commit is contained in:
Łukasz Langa 2011-04-28 17:03:45 +02:00
parent f531113397
commit 1aa422fe8f
3 changed files with 44 additions and 4 deletions

View file

@ -623,11 +623,12 @@ class RawConfigParser(MutableMapping):
self._strict = strict
self._allow_no_value = allow_no_value
self._empty_lines_in_values = empty_lines_in_values
if interpolation is _UNSET:
self._interpolation = self._DEFAULT_INTERPOLATION
else:
self._interpolation = interpolation
self.default_section=default_section
self._interpolation = interpolation
if self._interpolation is _UNSET:
self._interpolation = self._DEFAULT_INTERPOLATION
if self._interpolation is None:
self._interpolation = Interpolation()
def defaults(self):
return self._defaults