Add decompyle3 ifelsestmt reduction rule...

and Go over 3.3 and 3.7 runtests excludes
This commit is contained in:
rocky
2020-02-07 18:29:05 -05:00
parent 26a554c5c7
commit c93a7a728b
4 changed files with 98 additions and 66 deletions

View File

@@ -32,6 +32,7 @@ from uncompyle6.parser import PythonParser, PythonParserSingle, nop_func
from uncompyle6.parsers.reducecheck import (
and_check,
except_handler_else,
ifelsestmt,
ifstmt,
iflaststmt,
testtrue,
@@ -1531,6 +1532,7 @@ class Python3Parser(PythonParser):
self.reduce_check_table = {
"except_handler_else": except_handler_else,
# "ifstmt": ifstmt,
"ifelsestmtc": ifstmt,
"testtrue": testtrue,
"tryelsestmtl3": tryelsestmtl3,
"try_except": tryexcept,
@@ -1545,6 +1547,7 @@ class Python3Parser(PythonParser):
self.check_reduce["while1stmt"] = "noAST"
self.check_reduce["while1elsestmt"] = "noAST"
self.check_reduce["ifelsestmt"] = "AST"
self.check_reduce["ifelsestmtc"] = "AST"
self.check_reduce["ifstmt"] = "AST"
if self.version == 3.6:
self.reduce_check_table["iflaststmtl"] = iflaststmt