mirror of
https://github.com/python/cpython.git
synced 2025-01-23 17:44:35 +08:00
fix character index in ExtendedInterpolation's exception message
This commit is contained in:
commit
f3d8fb142d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user