##// END OF EJS Templates
Fix for %tb magic.
Thomas Kluyver -
Show More
@@ -1971,14 +1971,9 b' class InteractiveShell(SingletonConfigurable, Magic):'
1971 if next_input:
1971 if next_input:
1972 self.set_next_input(next_input)
1972 self.set_next_input(next_input)
1973
1973
1974 args = arg_s.split(' ',1)
1974 magic_name, _, magic_args = arg_s.partition(' ')
1975 magic_name = args[0]
1976 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
1975 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
1977
1976
1978 try:
1979 magic_args = args[1]
1980 except IndexError:
1981 magic_args = ''
1982 fn = getattr(self,'magic_'+magic_name,None)
1977 fn = getattr(self,'magic_'+magic_name,None)
1983 if fn is None:
1978 if fn is None:
1984 error("Magic function `%s` not found." % magic_name)
1979 error("Magic function `%s` not found." % magic_name)
General Comments 0
You need to be logged in to leave comments. Login now