()
| 873 | session_output = self.getstdout() |
| 874 | |
| 875 | def process(): |
| 876 | for line in session_output.split("\n"): |
| 877 | if line.startswith(self.ps1): |
| 878 | yield line[len(self.ps1) :] |
| 879 | elif line.startswith(self.ps2): |
| 880 | yield line[len(self.ps2) :] |
| 881 | elif line.rstrip(): |
| 882 | yield f"# OUT: {line}" |
| 883 | |
| 884 | return "\n".join(process()) |
| 885 |
nothing calls this directly
no outgoing calls
no test coverage detected