diff options
author | Łukasz Langa <lukasz@langa.pl> | 2013-04-23 23:25:18 (GMT) |
---|---|---|
committer | Łukasz Langa <lukasz@langa.pl> | 2013-04-23 23:25:18 (GMT) |
commit | fa608186b45918f8469cb72a53c016e9d88be821 (patch) | |
tree | ea124afca501a5772fd9f1c23c379392c54f54e5 /Lib/configparser.py | |
parent | 326edfde560410c8e92545e301722161b657db30 (diff) | |
download | cpython-fa608186b45918f8469cb72a53c016e9d88be821.zip cpython-fa608186b45918f8469cb72a53c016e9d88be821.tar.gz cpython-fa608186b45918f8469cb72a53c016e9d88be821.tar.bz2 |
fix character index in ExtendedInterpolation's exception message
Diffstat (limited to 'Lib/configparser.py')
-rw-r--r-- | Lib/configparser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/configparser.py b/Lib/configparser.py index c7bee6b..6c5aa49 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, |