jedi.kak: python 3 compat fix
This commit is contained in:
parent
e2f6b9a393
commit
186eed0906
|
@ -20,7 +20,7 @@ def jedi-complete -docstring "Complete the current selection" %{
|
||||||
compl=$(python 2> "${dir}/fifo" <<-END
|
compl=$(python 2> "${dir}/fifo" <<-END
|
||||||
import jedi
|
import jedi
|
||||||
script=jedi.Script(open('$dir/buf', 'r').read(), $kak_cursor_line, $kak_cursor_column - 1, '$kak_buffile')
|
script=jedi.Script(open('$dir/buf', 'r').read(), $kak_cursor_line, $kak_cursor_column - 1, '$kak_buffile')
|
||||||
print ':'.join([(str(c.name).replace("|", "\\|") + "|" + str(c.docstring()).replace("|", "\\|")).replace(":", "\\:") + "|" + str(c.name).replace("|", "\\|") for c in script.completions()]).replace("'", r"\\\\'")
|
print(':'.join([(str(c.name).replace("|", "\\|") + "|" + str(c.docstring()).replace("|", "\\|")).replace(":", "\\:") + "|" + str(c.name).replace("|", "\\|") for c in script.completions()]).replace("'", r"\\\\'"))
|
||||||
END
|
END
|
||||||
)
|
)
|
||||||
printf %s\\n "${compl}" > /tmp/kak-jedi-out
|
printf %s\\n "${compl}" > /tmp/kak-jedi-out
|
||||||
|
|
Loading…
Reference in New Issue
Block a user