1
0
forked from VimPlug/jedi

Fixing for loop additions.

This commit is contained in:
Dave Halter
2014-12-04 17:58:01 +01:00
parent a96d1b8d0f
commit 774ade955d
2 changed files with 2 additions and 13 deletions

View File

@@ -144,9 +144,8 @@ class Evaluator(object):
name = str(stmt.get_defined_names()[0])
parent = er.wrap(self, stmt.get_parent_scope())
left = self.find_types(parent, name, stmt.start_pos)
# TODO REMOVE or implement
if False and isinstance(stmt.parent, pr.ForFlow):
# iterate through result and add the values, that's possible
if isinstance(stmt.get_parent_until(pr.ForStmt), pr.ForStmt):
# Iterate through result and add the values, that's possible
# only in for loops without clutter, because they are
# predictable.
for r in types: