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: