##// END OF EJS Templates
Backport PR #10176: Deprecate %autoindent...
Matthias Bussonnier -
Show More
@@ -82,8 +82,9 b' class TerminalMagics(Magics):'
82
82
83 @line_magic
83 @line_magic
84 def autoindent(self, parameter_s = ''):
84 def autoindent(self, parameter_s = ''):
85 """Toggle autoindent on/off (if available)."""
85 """Toggle autoindent on/off (deprecated)"""
86
86 print("%autoindent is deprecated since IPython 5: you can now paste "
87 "multiple lines without turning autoindentation off.")
87 self.shell.set_autoindent()
88 self.shell.set_autoindent()
88 print("Automatic indentation is:",['OFF','ON'][self.shell.autoindent])
89 print("Automatic indentation is:",['OFF','ON'][self.shell.autoindent])
89
90
General Comments 0
You need to be logged in to leave comments. Login now