Show More
@@ -395,7 +395,10 def _tr_quote2(content): | |||
|
395 | 395 | |
|
396 | 396 | def _tr_paren(content): |
|
397 | 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 | 402 | return '%s(%s)' % (name, ", ".join(args.split())) |
|
400 | 403 | |
|
401 | 404 | tr = { ESC_SHELL : 'get_ipython().system({!r})'.format, |
General Comments 0
You need to be logged in to leave comments.
Login now