Show More
@@ -395,7 +395,10 b' def _tr_quote2(content):' | |||||
395 |
|
395 | |||
396 | def _tr_paren(content): |
|
396 | def _tr_paren(content): | |
397 | "Translate lines escaped with a slash: /" |
|
397 | "Translate lines escaped with a slash: /" | |
398 |
name, _, args = content.partition( |
|
398 | name, _, args = content.partition(" ") | |
|
399 | if name == "": | |||
|
400 | raise SyntaxError(f'"{ESC_SHELL}" must be followed by a callable name') | |||
|
401 | ||||
399 | return '%s(%s)' % (name, ", ".join(args.split())) |
|
402 | return '%s(%s)' % (name, ", ".join(args.split())) | |
400 |
|
403 | |||
401 | tr = { ESC_SHELL : 'get_ipython().system({!r})'.format, |
|
404 | tr = { ESC_SHELL : 'get_ipython().system({!r})'.format, |
General Comments 0
You need to be logged in to leave comments.
Login now