You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Keep pre-3.6 listcomp code patterns in 3.6
This commit is contained in:
@@ -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 ')
|
||||
|
Reference in New Issue
Block a user