Fix goto() deprecation.

This commit is contained in:
heavenshell
2013-06-01 00:59:49 +09:00
parent a8422d3682
commit 9c3e9dbe03

View File

@@ -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):