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

Function _tr_system

IPython/core/inputtransformer.py:213–216  ·  view source on GitHub ↗

Translate lines escaped with: !

(line_info)

Source from the content-addressed store, hash-verified

211
212# These define the transformations for the different escape characters.
213def _tr_system(line_info):
214 "Translate lines escaped with: !"
215 cmd = line_info.line.lstrip().lstrip(ESC_SHELL)
216 return '%sget_ipython().system(%r)' % (line_info.pre, cmd)
217
218def _tr_system2(line_info):
219 "Translate lines escaped with: !!"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected