From 73fb9f6b968651a61e7bdcc9deb3361a97edbcc1 Mon Sep 17 00:00:00 2001 From: rocky Date: Sat, 25 Jan 2020 16:14:36 -0500 Subject: [PATCH] Make sure "stmts" stays the start rule --- test/stdlib/3.6-exclude.sh | 4 +--- uncompyle6/parsers/parse3.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/stdlib/3.6-exclude.sh b/test/stdlib/3.6-exclude.sh index 4a4facbd..8722c22e 100644 --- a/test/stdlib/3.6-exclude.sh +++ b/test/stdlib/3.6-exclude.sh @@ -57,7 +57,7 @@ SKIP_TESTS=( [test_fileinput.py]=1 # doesn't terminate [test_finalization.py]=1 [test_float.py]=1 # it fails on its own - [test_format.py]=1 # FIXME: not getting grammar start rule; works on c90ff51 + [test_format.py]=1 # FIXME: works on c90ff51 [test_functools.py]=1 # it fails on its own [test___future__.py]=1 # syntax error: Investigate @@ -72,7 +72,6 @@ SKIP_TESTS=( [test_io.py]=1 # it fails on its own [test_imaplib.py]=1 - [test_imp.py]=1 # FIXME: not getting grammar start rule; works on c90ff51 [test_inspect.py]=1 # Syntax error Investigate [test_itertools.py]=1 # test assertion failures @@ -109,7 +108,6 @@ SKIP_TESTS=( [test_plistlib.py]=1 [test_poll.py]=1 # Takes too long 11 seconds [test_poplib.py]=1 - [test_posix.py]=1 # FIXME: not getting grammar start rule; works on c90ff51 [test_pprint.py]=1 # it fails on its own [test_pulldom.py]=1 [test_pyclbr.py]=1 # it fails on its own diff --git a/uncompyle6/parsers/parse3.py b/uncompyle6/parsers/parse3.py index c9d0f808..29e08234 100644 --- a/uncompyle6/parsers/parse3.py +++ b/uncompyle6/parsers/parse3.py @@ -360,7 +360,7 @@ class Python3Parser(PythonParser): ifelsestmt ::= testexpr c_stmts_opt JUMP_FORWARD else_suite _come_froms # FIXME: go over this - stmts ::= _stmts last_stmt + _stmts ::= _stmts last_stmt stmts ::= last_stmt stmts_opt ::= stmts last_stmt ::= iflaststmt