1
0
forked from VimPlug/jedi

Restructure the way we get self arguments (probably reduces executions of object).

This commit is contained in:
Dave Halter
2014-08-13 14:07:09 +02:00
parent cf32e15f65
commit 9702c4cdc6

View File

@@ -151,8 +151,8 @@ class Instance(use_metaclass(CachedMetaClass, Executed)):
if unicode(n.names[0]) == self_name and len(n.names) == 2:
add_self_dot_name(n)
if not isinstance(self.base, compiled.CompiledObject):
for s in self.base.py_bases():
for s in self.base.py__mro__(self._evaluator):
if not isinstance(s, compiled.CompiledObject):
for inst in self._evaluator.execute(s):
names += inst.get_self_attributes()
return names