Skip to content

Commit fa60818

Browse files
committed
fix character index in ExtendedInterpolation's exception message
1 parent 326edfd commit fa60818

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/configparser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ def before_set(self, parser, section, option, value):
456456
tmp_value = self._KEYCRE.sub('', tmp_value) # valid syntax
457457
if '$' in tmp_value:
458458
raise ValueError("invalid interpolation syntax in %r at "
459-
"position %d" % (value, tmp_value.find('%')))
459+
"position %d" % (value, tmp_value.find('$')))
460460
return value
461461

462462
def _interpolate_some(self, parser, option, accum, rest, section, map,

0 commit comments

Comments
 (0)