From eaffb849723ed714b91dcce2e9f1c089b7446cd5 2016-03-18 12:02:22 From: Min RK Date: 2016-03-18 12:02:22 Subject: [PATCH] Merge pull request #9333 from takluyver/autoindent-no-rl-check Don't check for readline when setting autoindent --- diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index 3a053f7..357098e 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -527,15 +527,9 @@ class InteractiveShell(SingletonConfigurable): ensure_dir_exists(new) def set_autoindent(self,value=None): - """Set the autoindent flag, checking for readline support. + """Set the autoindent flag. If called with no arguments, it acts as a toggle.""" - - if value != 0 and not self.has_readline: - if os.name == 'posix': - warn("The auto-indent feature requires the readline library") - self.autoindent = 0 - return if value is None: self.autoindent = not self.autoindent else: