Permalink
Browse files

Fix for %tb magic.

  • Loading branch information...
1 parent 0291d61 commit e14a39d76bd3ac2313d55c0d803f36db1293cd19 @takluyver committed Feb 9, 2012
Showing with 1 addition and 6 deletions.
  1. +1 −6 IPython/core/interactiveshell.py
View
7 IPython/core/interactiveshell.py
@@ -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)

0 comments on commit e14a39d

Please sign in to comment.