Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
45
def
_remove_ansi_escape_sequences(text: str) -> str:
46
return
_ANSI_ESCAPE_SEQ.sub(
""
, text)
47
48
49
class
ColoredLevelFormatter(logging.Formatter):
Callers
2
format
Method · 0.85
text
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected