1
0
forked from VimPlug/jedi

refactored Definition class. therefore the 'goto' function now uses it, too

This commit is contained in:
David Halter
2012-07-28 09:37:26 +02:00
parent fcf3e80d06
commit e8d4e9a13a
2 changed files with 34 additions and 22 deletions

View File

@@ -110,6 +110,7 @@ def run_goto_test(correct, source, line_nr, line, path):
else:
lst = []
for r in result:
r = r.definition
if isinstance(r, evaluate.InstanceElement):
r = r.var
if isinstance(r, (evaluate.Class, evaluate.Instance)):