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

Function _tr_quote

IPython/core/inputtransformer2.py:343–346  ·  view source on GitHub ↗

Translate lines escaped with a comma: ,

(content)

Source from the content-addressed store, hash-verified

341 return 'get_ipython().run_line_magic(%r, %r)' % (name, args)
342
343def _tr_quote(content):
344 "Translate lines escaped with a comma: ,"
345 name, _, args = content.partition(' ')
346 return '%s("%s")' % (name, '", "'.join(args.split()) )
347
348def _tr_quote2(content):
349 "Translate lines escaped with a semicolon: ;"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected