1
0
forked from VimPlug/jedi

splitlines and source_to_unicode are utils of parso.

This commit is contained in:
Dave Halter
2017-05-20 09:55:16 -04:00
parent 0f4b7db56a
commit 50c7137437
9 changed files with 27 additions and 118 deletions
+3 -2
View File
@@ -11,9 +11,10 @@ import re
import os
import sys
from parso.utils import splitlines
from jedi import Interpreter
from jedi.api.helpers import get_on_completion_name
from jedi import common
READLINE_DEBUG = False
@@ -85,7 +86,7 @@ def setup_readline(namespace_module=__main__):
logging.debug("Start REPL completion: " + repr(text))
interpreter = Interpreter(text, [namespace_module.__dict__])
lines = common.splitlines(text)
lines = splitlines(text)
position = (len(lines), len(lines[-1]))
name = get_on_completion_name(
interpreter._get_module_node(),