Fix pytest grammar test failure

dict and set comprehensions are only in 2.7+
This commit is contained in:
rocky
2016-09-22 01:32:00 -04:00
parent 0e9ebca1a5
commit d271e886d9
5 changed files with 12 additions and 5 deletions

View File

@@ -179,6 +179,7 @@ class Python26Parser(Python2Parser):
comp_for ::= SETUP_LOOP expr _for designator comp_iter jb_bp_come_from
comp_body ::= gen_comp_body
# Make sure we keep indices the same as 2.7
setup_loop_lf ::= SETUP_LOOP LOAD_FAST