More Python 2 and 3 deparsing bugs fixed

* while + if break
* try + finall /pass
This commit is contained in:
rocky
2016-05-05 20:56:41 -04:00
parent 845a4a2003
commit c58481a9eb
10 changed files with 27 additions and 5 deletions

View File

@@ -448,7 +448,7 @@ def python_parser(version, co, out=sys.stdout, showasm=False,
print(t)
# For heavy grammar debugging
# parser_debug = {'rules': True, 'transition': True, 'reduce' : True}
parser_debug = {'rules': True, 'transition': True, 'reduce' : True}
p = get_python_parser(version, parser_debug)
return parse(p, tokens, customize)