Weird 2.6.9 list comprehension

This commit is contained in:
rocky
2016-06-28 17:07:18 -04:00
parent 36432c7488
commit 0af3dd28bc
2 changed files with 6 additions and 1 deletions

View File

@@ -1067,6 +1067,7 @@ class SourceWalker(GenericASTTraversal, object):
n = ast[iter_index]
assert n == 'comp_iter'
# find innermost node
while n == 'comp_iter': # list_iter
n = n[0] # recurse one step