Skip to content

Commit

Permalink
Deprecate %autoindent
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Jan 18, 2017
1 parent fafcafc commit e39a9f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions IPython/terminal/magics.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ def rerun_pasted(self, name='pasted_block'):

@line_magic
def autoindent(self, parameter_s = ''):
"""Toggle autoindent on/off (if available)."""

"""Toggle autoindent on/off (deprecated)"""
print("%autoindent is deprecated: you can now paste multiple lines "
"without turning autoindentation off.")
self.shell.set_autoindent()
print("Automatic indentation is:",['OFF','ON'][self.shell.autoindent])

Expand Down

0 comments on commit e39a9f5

Please sign in to comment.