MCPcopy
hub / github.com/pytest-dev/pytest / unescape

Function unescape

src/_pytest/raises.py:354–355  ·  view source on GitHub ↗
(s: str)

Source from the content-addressed store, hash-verified

352
353
354def unescape(s: str) -> str:
355 return re.sub(r"\\([{}()+-.*?^$\[\]\s\\|])", r"\1", s)
356
357
358# These classes conceptually differ from ExceptionInfo in that ExceptionInfo is tied, and

Callers 2

__init__Method · 0.85

Calls

no outgoing calls