From: Ɓukasz Langa Date: Tue, 23 Apr 2013 23:25:18 +0000 (+0200) Subject: fix character index in ExtendedInterpolation's exception message X-Git-Tag: v3.3.2~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa608186b45918f8469cb72a53c016e9d88be821;p=thirdparty%2FPython%2Fcpython.git fix character index in ExtendedInterpolation's exception message --- diff --git a/Lib/configparser.py b/Lib/configparser.py index c7bee6bf1795..6c5aa49bab63 100644 --- a/Lib/configparser.py +++ b/Lib/configparser.py @@ -456,7 +456,7 @@ class ExtendedInterpolation(Interpolation): tmp_value = self._KEYCRE.sub('', tmp_value) # valid syntax if '$' in tmp_value: raise ValueError("invalid interpolation syntax in %r at " - "position %d" % (value, tmp_value.find('%'))) + "position %d" % (value, tmp_value.find('$'))) return value def _interpolate_some(self, parser, option, accum, rest, section, map,