summaryrefslogtreecommitdiff
path: root/Lib/configparser.py
diff options
context:
space:
mode:
authorŁukasz Langa <lukasz@langa.pl>2011-04-28 11:01:18 +0200
committerŁukasz Langa <lukasz@langa.pl>2011-04-28 11:01:18 +0200
commit60a4c47d6f2950874fedf8aacbcaa148281bb854 (patch)
tree159d4a2896cd20183b1675ad698b6a4a4276f30a /Lib/configparser.py
parent8f27d61296408530ce12cd684686f7432f22ca92 (diff)
parent8f4e4dff5b2c5196843580b5d451f2293862d930 (diff)
downloadcpython-60a4c47d6f2950874fedf8aacbcaa148281bb854.tar.gz
Merged solution for #11858 from 3.2.
Diffstat (limited to 'Lib/configparser.py')
-rw-r--r--Lib/configparser.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/configparser.py b/Lib/configparser.py
index fe28b1318c..611d6995be 100644
--- a/Lib/configparser.py
+++ b/Lib/configparser.py
@@ -482,17 +482,17 @@ class ExtendedInterpolation(Interpolation):
if m is None:
raise InterpolationSyntaxError(option, section,
"bad interpolation variable reference %r" % rest)
- path = parser.optionxform(m.group(1)).split(':')
+ path = m.group(1).split(':')
rest = rest[m.end():]
sect = section
opt = option
try:
if len(path) == 1:
- opt = path[0]
+ opt = parser.optionxform(path[0])
v = map[opt]
elif len(path) == 2:
sect = path[0]
- opt = path[1]
+ opt = parser.optionxform(path[1])
v = parser.get(sect, opt, raw=True)
else:
raise InterpolationSyntaxError(
@@ -1057,6 +1057,8 @@ class RawConfigParser(MutableMapping):
if not optname:
e = self._handle_error(e, fpname, lineno, line)
optname = self.optionxform(optname.rstrip())
+ if hasattr(self, '__ping__'):
+ import pdb; pdb.set_trace()
if (self._strict and
(sectname, optname) in elements_added):
raise DuplicateOptionError(sectname, optname,