From 8b3a62a76f4609b47caff4e2b09b7cb7e11b5f23 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Sat, 10 Aug 2013 00:50:26 -0600 Subject: [PATCH] Indent code blocks in the docstring --- jedi/utils.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/jedi/utils.py b/jedi/utils.py index 0e0a9d26..cc5d2a41 100644 --- a/jedi/utils.py +++ b/jedi/utils.py @@ -16,21 +16,21 @@ def setup_readline(): shell. If you want to use a custom ``PYTHONSTARTUP`` file (typically ``$HOME/.pythonrc.py``), you can add this piece of code:: - try: - from jedi.utils import setup_readline - setup_readline() - except ImportError: - print('Install Jedi! No autocompletion otherwise.') + try: + from jedi.utils import setup_readline + setup_readline() + except ImportError: + print('Install Jedi! No autocompletion otherwise.') Alternately, you can fall back to regular readline completion with something like:: - try: - from jedi.utils import setup_readline - setup_readline() - except ImportError: - import readline, rlcompleter - readline.parse_and_bind("tab: complete") + try: + from jedi.utils import setup_readline + setup_readline() + except ImportError: + import readline, rlcompleter + readline.parse_and_bind("tab: complete") You'll also need to add ``export PYTHONSTARTUP=$HOME/.pythonrc.py`` to your bash profile (usually ``.bash_profile`` or ``.profile``).