diff options
| author | Neal Norwitz <nnorwitz@gmail.com> | 2003-06-29 04:23:35 +0000 |
|---|---|---|
| committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-06-29 04:23:35 +0000 |
| commit | f2feb97b895e005c6aee020d28250c8f787caa90 (patch) | |
| tree | 2bead1c81ce1ec545da5d86f426eb5511321f98d /Lib/ConfigParser.py | |
| parent | 82e121c0c0156a67afa81279779a19f910ea69cd (diff) | |
| download | cpython-f2feb97b895e005c6aee020d28250c8f787caa90.tar.gz | |
Fix arguments for instantiating InterpolationSyntaxError
Diffstat (limited to 'Lib/ConfigParser.py')
| -rw-r--r-- | Lib/ConfigParser.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index 1fb9ec58d8..5f26715e34 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`) |
