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

Method reprint_line

bpython/curtsiesfrontend/repl.py:1933–1938  ·  view source on GitHub ↗
(self, lineno, tokens)

Source from the content-addressed store, hash-verified

1931 return len(self.current_line) - self.cursor_offset
1932
1933 def reprint_line(self, lineno, tokens):
1934 logger.debug("calling reprint line with %r %r", lineno, tokens)
1935 if self.config.syntax:
1936 self.display_buffer[lineno] = bpythonparse(
1937 pygformat(tokens, self.formatter)
1938 )
1939
1940 def take_back_buffer_line(self):
1941 assert len(self.buffer) > 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected