1
0
forked from VimPlug/jedi

Fix issues with copying children in combination with InstanceElement.

This commit is contained in:
Dave Halter
2014-10-28 13:33:40 +01:00
parent b550f67bce
commit 1cc1d4480b
2 changed files with 13 additions and 7 deletions
+2 -1
View File
@@ -61,6 +61,8 @@ class NameFinder(object):
if search_global:
return get_names_of_scope(self._evaluator, self.scope, self.position)
else:
if self.scope.isinstance(er.Function):
return iter([(self.scope, self.scope.get_magic_function_names())])
return self.scope.scope_names_generator(self.position)
def filter_name(self, scope_names_generator):
@@ -74,7 +76,6 @@ class NameFinder(object):
names = []
self.maybe_descriptor = isinstance(self.scope, er.Class)
for name_list_scope, name_list in scope_names_generator:
print(name_list_scope)
break_scopes = []
if not isinstance(name_list_scope, compiled.CompiledObject):
# Here is the position stuff happening (sorting of variables).