Small change

This commit is contained in:
rocky
2020-02-01 11:14:19 -05:00
parent cdc5642715
commit 4dc64063d1

View File

@@ -673,6 +673,7 @@ class Python2Parser(PythonParser):
if fn: if fn:
if fn(self, lhs, n, rule, ast, tokens, first, last): if fn(self, lhs, n, rule, ast, tokens, first, last):
return True return True
pass
if rule == ("and", ("expr", "jmp_false", "expr", "\\e_come_from_opt")): if rule == ("and", ("expr", "jmp_false", "expr", "\\e_come_from_opt")):
# If the instruction after the instructions forming the "and" is an "YIELD_VALUE" # If the instruction after the instructions forming the "and" is an "YIELD_VALUE"
# then this is probably an "if" inside a comprehension. # then this is probably an "if" inside a comprehension.