File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ def p_30to33(self, args):
16
16
"""
17
17
18
18
19
- def p_gen_comp (self , args ):
19
+ def p_gen_comp32 (self , args ):
20
20
"""
21
21
genexpr_func ::= LOAD_ARG FOR_ITER store comp_iter JUMP_BACK
22
22
"""
Original file line number Diff line number Diff line change @@ -19,8 +19,9 @@ def p_33on(self, args):
19
19
def customize_grammar_rules (self , tokens , customize ):
20
20
self .remove_rules ("""
21
21
# 3.3+ adds POP_BLOCKS
22
- whileTruestmt ::= SETUP_LOOP l_stmts_opt JUMP_BACK NOP COME_FROM_LOOP
22
+ genexpr_func ::= LOAD_ARG FOR_ITER store comp_iter JUMP_BACK
23
23
whileTruestmt ::= SETUP_LOOP l_stmts_opt JUMP_BACK POP_BLOCK NOP COME_FROM_LOOP
24
+ whileTruestmt ::= SETUP_LOOP l_stmts_opt JUMP_BACK NOP COME_FROM_LOOP
24
25
""" )
25
26
super (Python33Parser , self ).customize_grammar_rules (tokens , customize )
26
27
return
Original file line number Diff line number Diff line change @@ -403,7 +403,7 @@ def p_list_comprehension(self, args):
403
403
list_if_not ::= expr jmp_true list_iter
404
404
"""
405
405
406
- def p_gen_comp (self , args ):
406
+ def p_gen_comp37 (self , args ):
407
407
"""
408
408
comp_iter ::= comp_for
409
409
comp_body ::= gen_comp_body
You can’t perform that action at this time.
0 commit comments