You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Add decompyle3 ifelsestmt reduction rule...
and Go over 3.3 and 3.7 runtests excludes
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user