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

Method process

bpython/curtsiesfrontend/repl.py:2172–2178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2170
2171 def get_session_formatted_for_file(self) -> str:
2172 def process():
2173 for line, lineType in self.all_logical_lines:
2174 if lineType == LineType.INPUT:
2175 yield line
2176 elif line.rstrip():
2177 yield "# OUT: %s" % line
2178 yield "### %s" % self.current_line
2179
2180 return "\n".join(process())
2181

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected