forked from VimPlug/jedi
Add some print statements to the .pythonrc.py example
This commit is contained in:
+2
-1
@@ -22,12 +22,13 @@ def setup_readline():
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
# Fallback to the stdlib readline completer if it is installed.
|
# Fallback to the stdlib readline completer if it is installed.
|
||||||
# Taken from http://docs.python.org/2/library/rlcompleter.html
|
# Taken from http://docs.python.org/2/library/rlcompleter.html
|
||||||
|
print("Jedi is not installed, falling back to readline")
|
||||||
try:
|
try:
|
||||||
import readline
|
import readline
|
||||||
import rlcompleter
|
import rlcompleter
|
||||||
readline.parse_and_bind("tab: complete")
|
readline.parse_and_bind("tab: complete")
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
print("Readline is not installed either. No tab completion is enabled.")
|
||||||
|
|
||||||
This will fallback to the readline completer if Jedi is not installed.
|
This will fallback to the readline completer if Jedi is not installed.
|
||||||
The readline completer will only complete names in the global namespace,
|
The readline completer will only complete names in the global namespace,
|
||||||
|
|||||||
Reference in New Issue
Block a user