1
0
forked from VimPlug/jedi

self redirection solved

This commit is contained in:
David Halter
2012-05-25 13:58:52 +02:00
parent 37f66f53c5
commit ffb233eac1
6 changed files with 56 additions and 32 deletions

View File

@@ -73,12 +73,14 @@ class Definition(object):
self.scope = scope
def get_name(self):
return self.scope.name
try:
return self.scope.name
except AttributeError:
return self.scope.type
def get_module(self):
par = self.scope
while True:
# TODO what to do with `evaluate.Array` ?
if par.parent is not None:
par = par.parent
else: