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

Function transform_and_reset

IPython/core/tests/test_inputtransformer.py:10–18  ·  view source on GitHub ↗
(transformer)

Source from the content-addressed store, hash-verified

8from IPython.core import inputtransformer as ipt
9
10def transform_and_reset(transformer):
11 transformer = transformer()
12 def transform(inp):
13 try:
14 return transformer.push(inp)
15 finally:
16 transformer.reset()
17
18 return transform
19
20# Transformer tests
21def transform_checker(tests, transformer, **kwargs):

Callers 13

test_assign_systemFunction · 0.85
test_assign_magicFunction · 0.85
test_classic_promptFunction · 0.85
test_ipy_promptFunction · 0.85
test_help_endFunction · 0.85
test_escaped_noescFunction · 0.85
test_escaped_shellFunction · 0.85
test_escaped_helpFunction · 0.85
test_escaped_magicFunction · 0.85
test_escaped_quoteFunction · 0.85
test_escaped_quote2Function · 0.85
test_escaped_parenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected