MCPcopy Create free account
hub / github.com/bpython/bpython / process

Method process

bpython/repl.py:875–882  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected