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

Method writetb

bpython/curtsiesfrontend/interpreter.py:91–95  ·  view source on GitHub ↗
(self, lines: Iterable[str])

Source from the content-addressed store, hash-verified

89 self.outfile = self
90
91 def writetb(self, lines: Iterable[str]) -> None:
92 tbtext = "".join(lines)
93 lexer = get_lexer_by_name("pytb")
94 self.format(tbtext, lexer)
95 # TODO for tracebacks get_lexer_by_name("pytb", stripall=True)
96
97 def format(self, tbtext: str, lexer: Any) -> None:
98 # FIXME: lexer should be "Lexer"

Callers

nothing calls this directly

Calls 1

formatMethod · 0.95

Tested by

no test coverage detected