You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
3.7+ "or" disambiguation and assert2 handling
This commit is contained in:
@@ -760,6 +760,10 @@ class Python37Parser(Python37BaseParser):
|
||||
stmt ::= classdefdeco
|
||||
classdefdeco ::= classdefdeco1 store
|
||||
|
||||
# In 3.7 there are some LOAD_GLOBALs we don't convert to LOAD_ASSERT
|
||||
stmt ::= assert2
|
||||
assert2 ::= expr jmp_true LOAD_GLOBAL expr CALL_FUNCTION_1 RAISE_VARARGS_1
|
||||
|
||||
expr ::= LOAD_ASSERT
|
||||
|
||||
ifstmt ::= testexpr _ifstmts_jump
|
||||
|
Reference in New Issue
Block a user