mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +00:00
Closes #11324: ConfigParser(interpolation=None) doesn't work.
Initial patches by Tobias Brink. Thanks!
This commit is contained in:
parent
f531113397
commit
1aa422fe8f
3 changed files with 44 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue