summaryrefslogtreecommitdiff
path: root/Lib/configparser.py
diff options
context:
space:
mode:
author?ukasz Langa <lukasz@langa.pl>2013-04-24 01:25:18 +0200
committer?ukasz Langa <lukasz@langa.pl>2013-04-24 01:25:18 +0200
commitcd4b2aad84e294a1b7b9562620eab801aecc4315 (patch)
treecd5b63579f7f3c0626580d98edbed85ceb19d2c9 /Lib/configparser.py
parentf614db9b483214eaf1742cd7f5a1874fb8ac8a60 (diff)
downloadcpython-cd4b2aad84e294a1b7b9562620eab801aecc4315.tar.gz
fix character index in ExtendedInterpolation's exception message
Diffstat (limited to 'Lib/configparser.py')
-rw-r--r--Lib/configparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/configparser.py b/Lib/configparser.py
index c7bee6bf17..6c5aa49bab 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,