##// END OF EJS Templates
new style string formatting + explicit error message
Robert Marchman -
Show More
@@ -2125,7 +2125,8 b' class InteractiveShell(SingletonConfigurable):'
2125 'did you mean that instead?)' % magic_name )
2125 'did you mean that instead?)' % magic_name )
2126 error(etpl % (magic_name, extra))
2126 error(etpl % (magic_name, extra))
2127 elif cell == '':
2127 elif cell == '':
2128 raise UsageError('%%%%%s has line but no cell' % magic_name)
2128 raise UsageError('%%{0} (with double %) expects code beneath it. '
2129 'Did you mean %{0} (single %)?'.format(magic_name))
2129 else:
2130 else:
2130 # Note: this is the distance in the stack to the user's frame.
2131 # Note: this is the distance in the stack to the user's frame.
2131 # This will need to be updated if the internal calling logic gets
2132 # This will need to be updated if the internal calling logic gets
General Comments 0
You need to be logged in to leave comments. Login now