1
0
forked from VimPlug/jedi

fix list comprehensions. they were not implemented in a good way

This commit is contained in:
Dave Halter
2014-06-12 11:10:10 +02:00
parent f8b79b3dd0
commit d5758adb2b
4 changed files with 13 additions and 40 deletions

View File

@@ -88,7 +88,7 @@ class _RecursionNode(object):
if not other:
return None
is_list_comp = lambda x: isinstance(x, iterable.ListComprehensionFlow)
is_list_comp = lambda x: isinstance(x, pr.ListComprehension)
return self.script == other.script \
and self.position == other.position \
and not is_list_comp(self.stmt.parent) \