You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
No iflastlstmt reduce check for python < 3.6...
just yet
This commit is contained in:
@@ -1534,7 +1534,6 @@ class Python3Parser(PythonParser):
|
||||
"and": and_check,
|
||||
"except_handler_else": except_handler_else,
|
||||
# "ifstmt": ifstmt,
|
||||
"iflaststmtl": iflaststmt,
|
||||
"testtrue": testtrue,
|
||||
"tryelsestmtl3": tryelsestmtl3,
|
||||
"try_except": tryexcept,
|
||||
@@ -1549,6 +1548,7 @@ class Python3Parser(PythonParser):
|
||||
self.check_reduce["ifelsestmt"] = "AST"
|
||||
self.check_reduce["ifstmt"] = "AST"
|
||||
if self.version == 3.6:
|
||||
self.reduce_check_table["iflaststmtl"] = iflaststmt,
|
||||
self.check_reduce["iflaststmt"] = "AST"
|
||||
self.check_reduce["iflaststmtl"] = "AST"
|
||||
self.check_reduce["annotate_tuple"] = "noAST"
|
||||
|
Reference in New Issue
Block a user