mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-08 03:24:47 +08:00
Fix goto() deprecation.
This commit is contained in:
@@ -68,7 +68,7 @@ if 1:
|
|||||||
text = 'import %s' % args.pop()
|
text = 'import %s' % args.pop()
|
||||||
scr = jedi.Script(text, 1, len(text), '')
|
scr = jedi.Script(text, 1, len(text), '')
|
||||||
try:
|
try:
|
||||||
path = scr.goto()[0].module_path
|
path = scr.goto_assignments()[0].module_path
|
||||||
except IndexError:
|
except IndexError:
|
||||||
path = None
|
path = None
|
||||||
if path and osp.isfile(path):
|
if path and osp.isfile(path):
|
||||||
|
|||||||
Reference in New Issue
Block a user