From e9d162a0a9156db681297fe1625d4cdbb3420641 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 18 Jun 2011 11:40:04 +0200 Subject: Fix find_error behavior for non-RegexLexer lexers. --- scripts/find_error.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/find_error.py') diff --git a/scripts/find_error.py b/scripts/find_error.py index 593a6b5b..3b48a80a 100755 --- a/scripts/find_error.py +++ b/scripts/find_error.py @@ -120,7 +120,7 @@ def main(fn, lexer=None, options={}): print 'Error parsing', fn, 'on line', lno print 'Previous tokens' + (debug_lexer and ' and states' or '') + ':' if showall: - for tok, state in zip(tokens, states): + for tok, state in map(None, tokens, states): show_token(tok, state) else: for i in range(len(tokens) - num, len(tokens)): @@ -140,7 +140,7 @@ def main(fn, lexer=None, options={}): else: states.append(None) if showall: - for tok, state in zip(tokens, states): + for tok, state in map(None, tokens, states): show_token(tok, state) return 0 -- cgit v1.2.1