1
0
forked from VimPlug/jedi

magic_method -> magic_function

This commit is contained in:
Dave Halter
2014-01-09 17:06:02 +01:00
parent db149a84a8
commit f755e615c9
3 changed files with 4 additions and 4 deletions

View File

@@ -192,7 +192,7 @@ class Script(object):
debug.dbg('possible scopes', scopes)
for s in scopes:
if s.isinstance(er.Function):
names = s.get_magic_method_names()
names = s.get_magic_function_names()
else:
if isinstance(s, imports.ImportPath):
under = like + self._user_context.get_path_after_cursor()

View File

@@ -372,7 +372,7 @@ class Evaluator(object):
else:
# The function must not be decorated with something else.
if type.isinstance(er.Function):
type = type.get_magic_method_scope()
type = type.get_magic_function_scope()
else:
# This is the typical lookup while chaining things.
if filter_private_variable(type, scope, current):

View File

@@ -375,10 +375,10 @@ class Function(use_metaclass(CachedMetaClass, pr.IsScope)):
return Function(self._evaluator, self.base_func, True)
return decorated_func
def get_magic_method_names(self):
def get_magic_function_names(self):
return compiled.magic_function_scope(self._evaluator).get_defined_names()
def get_magic_method_scope(self):
def get_magic_function_scope(self):
return compiled.magic_function_scope(self._evaluator)
def __getattr__(self, name):