1
0
forked from VimPlug/jedi

invalid for loops completion should work now

This commit is contained in:
David Halter
2012-10-01 09:51:57 +02:00
parent eda2430ad7
commit 74fe520597
3 changed files with 12 additions and 1 deletions

View File

@@ -1055,6 +1055,8 @@ def get_scopes_for_name(scope, name_str, position=None, search_global=False,
def handle_for_loops(loop):
# Take the first statement (for has always only
# one, remember `in`). And follow it.
if not len(loop.inits):
return []
result = get_iterator_types(follow_statement(loop.inits[0]))
if len(loop.set_vars) > 1:
var_arr = loop.set_stmt.get_assignment_calls()