MCPcopy Index your code
hub / github.com/bpython/bpython / get_session_formatted_for_file

Method get_session_formatted_for_file

bpython/curtsiesfrontend/repl.py:2171–2180  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2169 )
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
2182 @property
2183 def ps1(self):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected