forked from VimPlug/jedi
Don't format the code to go in .pythonrc.py in a doctest
This is way too confusing. You don't put doctests in files, you put code in files.
This commit is contained in:
@@ -14,13 +14,13 @@ def setup_readline():
|
|||||||
|
|
||||||
This function setups :mod:`readline` to use Jedi in Python interactive
|
This function setups :mod:`readline` to use Jedi in Python interactive
|
||||||
shell. If you want to use a custom ``PYTHONSTARTUP`` file (typically
|
shell. If you want to use a custom ``PYTHONSTARTUP`` file (typically
|
||||||
``$HOME/.pythonrc.py``), you can add this piece of code:
|
``$HOME/.pythonrc.py``), you can add this piece of code::
|
||||||
|
|
||||||
>>> try:
|
try:
|
||||||
... from jedi.utils import setup_readline
|
from jedi.utils import setup_readline
|
||||||
... setup_readline()
|
setup_readline()
|
||||||
... except ImportError:
|
except ImportError:
|
||||||
... print('Install Jedi with pip! No autocompletion otherwise.')
|
print('Install Jedi with pip! No autocompletion otherwise.')
|
||||||
|
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user