Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
354
def
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
test_pipe_is_treated_as_regex_metacharacter
Method · 0.90
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
1
test_pipe_is_treated_as_regex_metacharacter
Method · 0.72