(self, prompt_re, initial_re=None)
| 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] |
nothing calls this directly
no outgoing calls
no test coverage detected