Kaydet (Commit) f3d8fb14 authored tarafından Łukasz Langa's avatar Łukasz Langa

fix character index in ExtendedInterpolation's exception message

......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment