Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for %tb magic.

  • Loading branch information...
commit e14a39d76bd3ac2313d55c0d803f36db1293cd19 1 parent 0291d61
Thomas Kluyver authored
Showing with 1 addition and 6 deletions.
  1. +1 −6 IPython/core/interactiveshell.py
7 IPython/core/interactiveshell.py
View
@@ -1971,14 +1971,9 @@ def magic(self, arg_s, next_input=None):
if next_input:
self.set_next_input(next_input)
- args = arg_s.split(' ',1)
- magic_name = args[0]
+ magic_name, _, magic_args = arg_s.partition(' ')
magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
- try:
- magic_args = args[1]
- except IndexError:
- magic_args = ''
fn = getattr(self,'magic_'+magic_name,None)
if fn is None:
error("Magic function `%s` not found." % magic_name)
Please sign in to comment.
Something went wrong with that request. Please try again.