diff options
author | Łukasz Langa <lukasz@langa.pl> | 2011-04-28 09:01:18 (GMT) |
---|---|---|
committer | Łukasz Langa <lukasz@langa.pl> | 2011-04-28 09:01:18 (GMT) |
commit | 50c7562da9fa5a7a0a55417dfe78f8ab8c89e71b (patch) | |
tree | cda75e4320adc82d2ad089e62af999c6c71cdbf9 /Lib/configparser.py | |
parent | 7274828b482ea95ded057f21b9dd2d11967a6a91 (diff) | |
parent | e698cd54bc7be288a982cab6efe997316f4df996 (diff) | |
download | cpython-50c7562da9fa5a7a0a55417dfe78f8ab8c89e71b.zip cpython-50c7562da9fa5a7a0a55417dfe78f8ab8c89e71b.tar.gz cpython-50c7562da9fa5a7a0a55417dfe78f8ab8c89e71b.tar.bz2 |
Merged solution for #11858 from 3.2.
Diffstat (limited to 'Lib/configparser.py')
-rw-r--r-- | Lib/configparser.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/configparser.py b/Lib/configparser.py index fe28b13..611d699 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, |