1
0
forked from VimPlug/jedi

list comprehensions should be able to serve as an input for dynamic params as well.

This commit is contained in:
Dave Halter
2014-06-11 21:54:18 +02:00
parent 63868feb5d
commit 43e54b6173
3 changed files with 18 additions and 4 deletions
+3
View File
@@ -161,6 +161,9 @@ def scan_statement_for_calls(stmt, search_name, assignment_details=False):
if s_new.execution is not None:
result += scan_array(s_new.execution, search_name)
s_new = s_new.next
elif isinstance(c, pr.ListComprehension):
for s in c.stmt, c.middle, c.input:
result += scan_statement_for_calls(s, search_name)
return result