summaryrefslogtreecommitdiffstats
path: root/Lib/configparser.py
diff options
context:
space:
mode:
authorŁukasz Langa <lukasz@langa.pl>2013-04-23 23:25:55 (GMT)
committerŁukasz Langa <lukasz@langa.pl>2013-04-23 23:25:55 (GMT)
commitf3d8fb142d9703ebcd7a611cb02899909a161e4d (patch)
treec91bc0bc761ca53259b0c7c8b7e1089f1a0b7f3d /Lib/configparser.py
parenta8a5c58a19104f2f4905b91c3c2d4473a02dc5a9 (diff)
parentfa608186b45918f8469cb72a53c016e9d88be821 (diff)
downloadcpython-f3d8fb142d9703ebcd7a611cb02899909a161e4d.zip
cpython-f3d8fb142d9703ebcd7a611cb02899909a161e4d.tar.gz
cpython-f3d8fb142d9703ebcd7a611cb02899909a161e4d.tar.bz2
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 f9584cd..708553d 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,