1
0
forked from VimPlug/jedi

fix unnessecary bracket stuff

This commit is contained in:
David Halter
2013-02-09 00:00:26 +01:00
parent 07f4c08069
commit ffaaa68f56
2 changed files with 14 additions and 9 deletions

View File

@@ -558,6 +558,7 @@ def follow_call_list(call_list, follow_array=False):
It is used to evaluate a two dimensional object, that has calls, arrays and
operators in it.
"""
# TODO remove follow_array?!
def evaluate_list_comprehension(lc, parent=None):
input = lc.input
nested_lc = lc.input.token_list[0]
@@ -584,7 +585,8 @@ def follow_call_list(call_list, follow_array=False):
calls_iterator = iter(call_list)
for call in calls_iterator:
if pr.Array.is_type(call, pr.Array.NOARRAY):
result += follow_call_list(call, follow_array=True)
result += itertools.chain.from_iterable(follow_statement(s)
for s in call)
elif isinstance(call, pr.ListComprehension):
loop = evaluate_list_comprehension(call)
stmt = copy.copy(call.stmt)