Fix complete() deprecation.

This commit is contained in:
heavenshell
2013-06-01 00:27:14 +09:00
parent b9fef7b969
commit cf3182e549
2 changed files with 6 additions and 5 deletions

View File

@@ -92,7 +92,7 @@ if 1:
else:
text = 'import %s' % argl
script=jedi.Script(text, 1, len(text), '')
comps = [ '%s%s' % (argl, c.complete) for c in script.complete()]
comps = ['%s%s' % (argl, c.complete) for c in script.completions()]
vim.command("let comps = '%s'" % '\n'.join(comps))
EOF
return comps