1
0
forked from VimPlug/jedi

unite returns a set now, this simplifies all the set(unite( calls.

This commit is contained in:
Dave Halter
2015-11-28 17:52:39 +01:00
parent 9259a432b7
commit 55615fb3c1
5 changed files with 15 additions and 15 deletions
+1 -2
View File
@@ -2,7 +2,6 @@ import copy
from itertools import chain
from jedi.parser import tree
from jedi import common
def deep_ast_copy(obj, parent=None, new_elements=None):
@@ -121,7 +120,7 @@ def get_names_of_node(node):
else:
return []
else:
return common.unite(get_names_of_node(c) for c in children)
return list(chain.from_iterable(get_names_of_node(c) for c in children))
def get_module_names(module, all_scopes):