MCPcopy Create free account
hub / github.com/ipython/ipython / _tr_paren

Function _tr_paren

IPython/core/inputtransformer2.py:353–356  ·  view source on GitHub ↗

Translate lines escaped with a slash: /

(content)

Source from the content-addressed store, hash-verified

351 return '%s("%s")' % (name, args)
352
353def _tr_paren(content):
354 "Translate lines escaped with a slash: /"
355 name, _, args = content.partition(' ')
356 return '%s(%s)' % (name, ", ".join(args.split()))
357
358tr = { ESC_SHELL : 'get_ipython().system({!r})'.format,
359 ESC_SH_CAP : 'get_ipython().getoutput({!r})'.format,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected