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

Method reprint_line

bpython/urwid.py:855–857  ·  view source on GitHub ↗
(self, lineno, tokens)

Source from the content-addressed store, hash-verified

853 widget_list.append(urwid.Text(("comment", docstring)))
854
855 def reprint_line(self, lineno, tokens):
856 edit = self.edits[-len(self.buffer) + lineno - 1]
857 edit.set_edit_markup(list(format_tokens(tokens)))
858
859 def getstdout(self):
860 """This method returns the 'spoofed' stdout buffer, for writing to a

Callers

nothing calls this directly

Calls 2

format_tokensFunction · 0.85
set_edit_markupMethod · 0.80

Tested by

no test coverage detected