Skip to content

Commit

Permalink
autoindent deprecated since IPython 5
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Jan 19, 2017
1 parent e39a9f5 commit a0373a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IPython/terminal/magics.py
Expand Up @@ -82,8 +82,8 @@ def rerun_pasted(self, name='pasted_block'):
@line_magic
def autoindent(self, parameter_s = ''):
"""Toggle autoindent on/off (deprecated)"""
print("%autoindent is deprecated: you can now paste multiple lines "
"without turning autoindentation off.")
print("%autoindent is deprecated since IPython 5: 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 a0373a3

Please sign in to comment.