From 9c3e9dbe03a7174ba43780a48608ace74b735332 Mon Sep 17 00:00:00 2001 From: heavenshell Date: Sat, 1 Jun 2013 00:59:49 +0900 Subject: [PATCH] Fix goto() deprecation. --- plugin/jedi.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/jedi.vim b/plugin/jedi.vim index 640b2f3..ac36f14 100644 --- a/plugin/jedi.vim +++ b/plugin/jedi.vim @@ -68,7 +68,7 @@ if 1: text = 'import %s' % args.pop() scr = jedi.Script(text, 1, len(text), '') try: - path = scr.goto()[0].module_path + path = scr.goto_assignments()[0].module_path except IndexError: path = None if path and osp.isfile(path):