You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Reduse scope of LOAD_ASSERT as expr to 3.4+
This commit is contained in:
@@ -442,7 +442,6 @@ class PythonParser(GenericASTBuilder):
|
|||||||
def p_expr(self, args):
|
def p_expr(self, args):
|
||||||
'''
|
'''
|
||||||
expr ::= _mklambda
|
expr ::= _mklambda
|
||||||
expr ::= LOAD_ASSERT
|
|
||||||
expr ::= LOAD_FAST
|
expr ::= LOAD_FAST
|
||||||
expr ::= LOAD_NAME
|
expr ::= LOAD_NAME
|
||||||
expr ::= LOAD_CONST
|
expr ::= LOAD_CONST
|
||||||
|
@@ -15,6 +15,8 @@ class Python34Parser(Python33Parser):
|
|||||||
|
|
||||||
def p_misc34(self, args):
|
def p_misc34(self, args):
|
||||||
"""
|
"""
|
||||||
|
expr ::= LOAD_ASSERT
|
||||||
|
|
||||||
# Python 3.4+ optimizes the trailing two JUMPS away
|
# Python 3.4+ optimizes the trailing two JUMPS away
|
||||||
|
|
||||||
# Is this 3.4 only?
|
# Is this 3.4 only?
|
||||||
|
Reference in New Issue
Block a user