MCPcopy Create free account
hub / github.com/pytest-dev/pytest / _remove_ansi_escape_sequences

Function _remove_ansi_escape_sequences

src/_pytest/logging.py:45–46  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

43
44
45def _remove_ansi_escape_sequences(text: str) -> str:
46 return _ANSI_ESCAPE_SEQ.sub("", text)
47
48
49class ColoredLevelFormatter(logging.Formatter):

Callers 2

formatMethod · 0.85
textMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected