def configureCompletion(self) -> None:
try:
from jedi.utils import setup_readline
setup_readline()
except ImportError:
# Fallback to the stdlib readline completer if it is installed.
# Taken from http://docs.python.org/2/library/rlcompleter.html
runtime.ui.info("jedi is not installed, falling back to readline"
" for completion")
try:
import readline
import rlcompleter
readline.parse_and_bind("tab: complete")
except ImportError:
runtime.ui.info("readline is not installed either."
" No tab completion is enabled.")