From 186eed0906e18ebfdc6d4cf178a5921d620eb1a4 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 20 Feb 2017 20:13:48 +0000 Subject: [PATCH] jedi.kak: python 3 compat fix --- rc/extra/jedi.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/extra/jedi.kak b/rc/extra/jedi.kak index 8132406f..6212c38f 100644 --- a/rc/extra/jedi.kak +++ b/rc/extra/jedi.kak @@ -20,7 +20,7 @@ def jedi-complete -docstring "Complete the current selection" %{ compl=$(python 2> "${dir}/fifo" <<-END import jedi 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 ) printf %s\\n "${compl}" > /tmp/kak-jedi-out