Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/prometheus/client_python
/ _replace_escaping
Function
_replace_escaping
prometheus_client/parser.py:40–41 ·
view source on GitHub ↗
(s: str)
Source
from the content-addressed store, hash-verified
38
39
40
def
_replace_escaping(s: str) -> str:
41
return
ESCAPING_RE.sub(replace_escape_sequence, s)
42
43
44
def
_is_character_escaped(s: str, charpos: int) -> bool:
Callers
1
_unquote_unescape
Function · 0.70
Calls
1
sub
Method · 0.45
Tested by
no test coverage detected