forked from VimPlug/jedi
splitlines and source_to_unicode are utils of parso.
This commit is contained in:
+3
-2
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user