Sync with other versions

This commit is contained in:
rocky
2021-12-23 16:46:25 -05:00
parent a3bc9bb32b
commit 30aad42aae

View File

@@ -1259,7 +1259,7 @@ class SourceWalker(GenericASTTraversal, object):
have_not = False
# Iterate to find the innermost store
# Iterate to find the inner-most "store".
# We'll come back to the list iteration below.
while n in ("list_iter", "list_afor", "list_afor2", "comp_iter"):
@@ -1400,7 +1400,7 @@ class SourceWalker(GenericASTTraversal, object):
list_if = None
assert n == "comp_iter"
# find innermost node
# Find inner-most node.
while n == "comp_iter":
n = n[0] # recurse one step
# FIXME: adjust for set comprehension