diff options
Diffstat (limited to 'examples/sexpParser.py')
-rw-r--r-- | examples/sexpParser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/sexpParser.py b/examples/sexpParser.py index f678d9a..5c4f14d 100644 --- a/examples/sexpParser.py +++ b/examples/sexpParser.py @@ -52,7 +52,7 @@ def verify_length(s, l, t): if t.len is not None: t1len = len(t[1]) if t1len != t.len: - raise pp.ParseFatalException(s, l, "invalid data of length {0}, expected {1}".format(t1len, t.len)) + raise pp.ParseFatalException(s, l, "invalid data of length {}, expected {}".format(t1len, t.len)) return t[1] |