##// END OF EJS Templates
Don't check for readline when setting autoindent...
Thomas Kluyver -
Show More
@@ -527,15 +527,9 b' class InteractiveShell(SingletonConfigurable):'
527 ensure_dir_exists(new)
527 ensure_dir_exists(new)
528
528
529 def set_autoindent(self,value=None):
529 def set_autoindent(self,value=None):
530 """Set the autoindent flag, checking for readline support.
530 """Set the autoindent flag.
531
531
532 If called with no arguments, it acts as a toggle."""
532 If called with no arguments, it acts as a toggle."""
533
534 if value != 0 and not self.has_readline:
535 if os.name == 'posix':
536 warn("The auto-indent feature requires the readline library")
537 self.autoindent = 0
538 return
539 if value is None:
533 if value is None:
540 self.autoindent = not self.autoindent
534 self.autoindent = not self.autoindent
541 else:
535 else:
General Comments 0
You need to be logged in to leave comments. Login now