1
0
forked from VimPlug/jedi

also fixed nested list comprehensions

This commit is contained in:
David Halter
2013-02-21 01:39:49 +04:30
parent 4d3267b24f
commit 6b5295bc40
3 changed files with 7 additions and 5 deletions

View File

@@ -568,7 +568,7 @@ def follow_call_list(call_list, follow_array=False):
# create a for loop, which does the same as list comprehensions
loop = pr.ForFlow(module, [input], lc.stmt.start_pos, lc.middle, True)
loop.parent = lc.parent if parent is None else parent
loop.parent = parent or lc.get_parent_until(pr.IsScope)
if isinstance(nested_lc, pr.ListComprehension):
loop = evaluate_list_comprehension(nested_lc, loop)