Commit f2feb97b authored by Neal Norwitz's avatar Neal Norwitz

Fix arguments for instantiating InterpolationSyntaxError

parent 82e121c0
...@@ -597,8 +597,8 @@ class SafeConfigParser(ConfigParser): ...@@ -597,8 +597,8 @@ class SafeConfigParser(ConfigParser):
elif c == "(": elif c == "(":
m = self._interpvar_match(rest) m = self._interpvar_match(rest)
if m is None: if m is None:
raise InterpolationSyntaxError( raise InterpolationSyntaxError(option, section,
"bad interpolation variable reference", rest) "bad interpolation variable reference %r" % rest)
var = m.group(1) var = m.group(1)
rest = rest[m.end():] rest = rest[m.end():]
try: try:
...@@ -613,5 +613,5 @@ class SafeConfigParser(ConfigParser): ...@@ -613,5 +613,5 @@ class SafeConfigParser(ConfigParser):
accum.append(v) accum.append(v)
else: else:
raise InterpolationSyntaxError( raise InterpolationSyntaxError(
option, section, rest, option, section,
"'%' must be followed by '%' or '(', found: " + `rest`) "'%' must be followed by '%' or '(', found: " + `rest`)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment