List comprehension fragment bugs in 3.4

This commit is contained in:
rocky
2018-02-01 09:08:46 -05:00
parent 555a1235b2
commit 576ab98319
3 changed files with 43 additions and 10 deletions

View File

@@ -1529,7 +1529,8 @@ class SourceWalker(GenericASTTraversal, object):
ast = self.build_ast(code._tokens, code._customize)
self.customize(code._customize)
# skip over stmts sstmt smt
# skip over stmt return ret_expr
ast = ast[0][0][0]
store = None
if ast in ['setcomp_func', 'dictcomp_func']: