summaryrefslogtreecommitdiffstats
path: root/Lib/ConfigParser.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-06-29 04:23:35 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2003-06-29 04:23:35 (GMT)
commit10f3018023f5d862c79f95bcec3ab40e17dbe81a (patch)
tree37fc028a0d140c7490e1c7d27c8b5569477418f9 /Lib/ConfigParser.py
parentb207170d39b0f12248b2c3382c7f5c686d7cdb04 (diff)
downloadcpython-10f3018023f5d862c79f95bcec3ab40e17dbe81a.zip
cpython-10f3018023f5d862c79f95bcec3ab40e17dbe81a.tar.gz
cpython-10f3018023f5d862c79f95bcec3ab40e17dbe81a.tar.bz2
Fix arguments for instantiating InterpolationSyntaxError
Diffstat (limited to 'Lib/ConfigParser.py')
-rw-r--r--Lib/ConfigParser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py
index 1fb9ec5..5f26715 100644
--- a/Lib/ConfigParser.py
+++ b/Lib/ConfigParser.py
@@ -597,8 +597,8 @@ class SafeConfigParser(ConfigParser):
elif c == "(":
m = self._interpvar_match(rest)
if m is None:
- raise InterpolationSyntaxError(
- "bad interpolation variable reference", rest)
+ raise InterpolationSyntaxError(option, section,
+ "bad interpolation variable reference %r" % rest)
var = m.group(1)
rest = rest[m.end():]
try:
@@ -613,5 +613,5 @@ class SafeConfigParser(ConfigParser):
accum.append(v)
else:
raise InterpolationSyntaxError(
- option, section, rest,
+ option, section,
"'%' must be followed by '%' or '(', found: " + `rest`)