Keep pre-3.6 listcomp code patterns in 3.6

This commit is contained in:
rocky
2018-02-28 16:22:33 -05:00
parent b128e4fde6
commit 1fe432585e
4 changed files with 16 additions and 7 deletions

View File

@@ -1697,6 +1697,7 @@ class SourceWalker(GenericASTTraversal, object):
assert n == 'lc_body', ast
# FIXME: add indentation around "for"'s and "in"'s
self.preorder(n[0])
if self.version < 3.6:
self.write(' for ')