Show More
@@ -527,15 +527,9 b' class InteractiveShell(SingletonConfigurable):' | |||
|
527 | 527 | ensure_dir_exists(new) |
|
528 | 528 | |
|
529 | 529 | def set_autoindent(self,value=None): |
|
530 |
"""Set the autoindent flag |
|
|
530 | """Set the autoindent flag. | |
|
531 | 531 | |
|
532 | 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 | 533 | if value is None: |
|
540 | 534 | self.autoindent = not self.autoindent |
|
541 | 535 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now