Reduse scope of LOAD_ASSERT as expr to 3.4+

This commit is contained in:
rocky
2017-04-22 22:10:55 -04:00
parent b35546157f
commit 50687e6317
2 changed files with 2 additions and 1 deletions

View File

@@ -442,7 +442,6 @@ class PythonParser(GenericASTBuilder):
def p_expr(self, args):
'''
expr ::= _mklambda
expr ::= LOAD_ASSERT
expr ::= LOAD_FAST
expr ::= LOAD_NAME
expr ::= LOAD_CONST

View File

@@ -15,6 +15,8 @@ class Python34Parser(Python33Parser):
def p_misc34(self, args):
"""
expr ::= LOAD_ASSERT
# Python 3.4+ optimizes the trailing two JUMPS away
# Is this 3.4 only?