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

Function _tr_system2

IPython/core/inputtransformer.py:218–221  ·  view source on GitHub ↗

Translate lines escaped with: !!

(line_info)

Source from the content-addressed store, hash-verified

216 return '%sget_ipython().system(%r)' % (line_info.pre, cmd)
217
218def _tr_system2(line_info):
219 "Translate lines escaped with: !!"
220 cmd = line_info.line.lstrip()[2:]
221 return '%sget_ipython().getoutput(%r)' % (line_info.pre, cmd)
222
223def _tr_help(line_info):
224 "Translate lines escaped with: ?/??"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected