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

Function clean_colors

bpython/test/test_args.py:115–116  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

113
114
115def clean_colors(s):
116 return re.sub(r"\x1b[^m]*m", "", s)
117
118
119class TestParse(TestCase):

Callers 1

Calls 1

subMethod · 0.80

Tested by

no test coverage detected