summaryrefslogtreecommitdiff
path: root/Lib/configparser.py
diff options
context:
space:
mode:
authorŁukasz Langa <lukasz@langa.pl>2011-04-28 17:04:25 +0200
committerŁukasz Langa <lukasz@langa.pl>2011-04-28 17:04:25 +0200
commit70eb79c669547509d82b3e2d8fac7fa1b6244f75 (patch)
tree5b6ee8a0b6371c450196ddab8f4c0d99850efdb6 /Lib/configparser.py
parentbf53a9c25670c75433b1c95263741f8a29c7c8b5 (diff)
parent1aa422fe8f056fd0000da45a67d875adc75cf034 (diff)
downloadcpython-git-70eb79c669547509d82b3e2d8fac7fa1b6244f75.tar.gz
Merged solution for #11324 from 3.2.
Diffstat (limited to 'Lib/configparser.py')
-rw-r--r--Lib/configparser.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/configparser.py b/Lib/configparser.py
index 611d6995be..e56f96350d 100644
--- a/Lib/configparser.py
+++ b/Lib/configparser.py
@@ -624,11 +624,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