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

Method __init__

IPython/core/inputtransformer2.py:72–74  ·  view source on GitHub ↗
(self, prompt_re, initial_re=None)

Source from the content-addressed store, hash-verified

70 prompts will be stripped from the rest of the block.
71 """
72 def __init__(self, prompt_re, initial_re=None):
73 self.prompt_re = prompt_re
74 self.initial_re = initial_re or prompt_re
75
76 def _strip(self, lines):
77 return [self.prompt_re.sub('', l, count=1) for l in lines]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected