1
0
forked from VimPlug/jedi

More and probably the last tuple assignment stuff.

This commit is contained in:
Dave Halter
2014-10-22 02:29:47 +02:00
parent 297bcf6e19
commit 34f3ea6973
2 changed files with 5 additions and 1 deletions

View File

@@ -218,7 +218,7 @@ class Array(use_metaclass(CachedMetaClass, IterableWrapper)):
return getattr(self._array, name)
def _items(self):
if pr.is_node(self._array_node, 'testlist_comp'):
if pr.is_node(self._array_node, 'testlist_comp') or pr.is_node(self._array_node, 'testlist_star_expr'):
return self._array_node.children[::2]
else:
return [self._array_node]