1
0
forked from VimPlug/jedi

Fix an array lookup issue. list.pop calls work now pretty well and return the right type.

This commit is contained in:
Dave Halter
2015-02-26 13:57:54 +01:00
parent d318d3c855
commit b8a8c4d402
4 changed files with 26 additions and 3 deletions

View File

@@ -146,7 +146,7 @@ class Evaluator(object):
@memoize_default(evaluator_is_first_arg=True)
def eval_element(self, element):
if isinstance(element, iterable.AlreadyEvaluated):
return element
return list(element)
elif isinstance(element, iterable.MergedNodes):
return iterable.unite(self.eval_element(e) for e in element)