From 396e19c2fdc3e36d62caefc5a91b8d58d4d1454d Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Sat, 10 Aug 2013 00:42:00 -0600 Subject: [PATCH] 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. --- jedi/utils.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/jedi/utils.py b/jedi/utils.py index 1736dfff..8ab4c2f0 100644 --- a/jedi/utils.py +++ b/jedi/utils.py @@ -14,13 +14,13 @@ def setup_readline(): This function setups :mod:`readline` to use Jedi in Python interactive 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: - ... from jedi.utils import setup_readline - ... setup_readline() - ... except ImportError: - ... print('Install Jedi with pip! No autocompletion otherwise.') + try: + from jedi.utils import setup_readline + setup_readline() + except ImportError: + print('Install Jedi with pip! No autocompletion otherwise.') """ try: