1
0
forked from VimPlug/jedi

Param helper class in the tree.

This commit is contained in:
Dave Halter
2014-10-22 20:07:42 +02:00
parent e9f4c60e49
commit 4f4aef7ac8
3 changed files with 49 additions and 27 deletions

View File

@@ -154,10 +154,10 @@ class Instance(use_metaclass(CachedMetaClass, Executed)):
continue
# Get the self name, if there's one.
self_name = self._get_func_self_name(sub)
if not self_name:
if self_name is None:
continue
if sub.name.get_code() == '__init__':
if sub.name.value == '__init__':
# ``__init__`` is special because the params need are injected
# this way. Therefore an execution is necessary.
if not sub.decorators:
@@ -165,6 +165,7 @@ class Instance(use_metaclass(CachedMetaClass, Executed)):
# because to follow them and their self variables is too
# complicated.
sub = self._get_method_execution(sub)
print(sub.get_names_dict().values())
for per_name_list in sub.get_names_dict().values():
for call in per_name_list:
if unicode(call.name) == self_name \