1
0
forked from VimPlug/jedi

Fix shell completion issues and documentation

This issue was raised in #990. The completer was never used in Python3.4+,
because it was overwritten by Python's completer. Oddly enough it has always
worked in Python2.7/3.3.

The documentation was also slightly modified. os.path.join was always a
complex beast.
This commit is contained in:
Dave Halter
2018-03-09 22:39:00 +01:00
parent c4be83759c
commit 54a8db503d
2 changed files with 7 additions and 2 deletions

View File

@@ -108,6 +108,11 @@ def setup_readline(namespace_module=__main__):
return None
try:
# Need to import this one as well to make sure it's executed before
# this code. This didn't use to be an issue until 3.3. Starting with
# 3.4 this is different, it always overwrites the completer if it's not
# already imported here.
import rlcompleter
import readline
except ImportError:
print("Jedi: Module readline not available.")