You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Restrict "and" reduction checking to Python 3.6
This commit is contained in:
@@ -1531,7 +1531,6 @@ class Python3Parser(PythonParser):
|
||||
|
||||
# FIXME: Put more in this table
|
||||
self.reduce_check_table = {
|
||||
"and": and_check,
|
||||
"except_handler_else": except_handler_else,
|
||||
# "ifstmt": ifstmt,
|
||||
"testtrue": testtrue,
|
||||
@@ -1539,8 +1538,10 @@ class Python3Parser(PythonParser):
|
||||
"try_except": tryexcept,
|
||||
}
|
||||
|
||||
if self.version >= 3.1:
|
||||
if self.version == 3.6:
|
||||
self.reduce_check_table["and"] = and_check
|
||||
self.check_reduce["and"] = "AST"
|
||||
|
||||
self.check_reduce["aug_assign1"] = "AST"
|
||||
self.check_reduce["aug_assign2"] = "AST"
|
||||
self.check_reduce["while1stmt"] = "noAST"
|
||||
|
Reference in New Issue
Block a user