Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/redis/redis-py
/ _ensure_str
Method
_ensure_str
tests/test_commands.py:1851–1852 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
1849
assert r.get(
"a"
) is None
1850
1851
def
_ensure_str(self, x):
1852
return
x.decode(
"ascii"
)
if
isinstance(x, (bytes, bytearray))
else
x
1853
1854
def
_server_xxh3_digest(self, r, key):
1855
""
"
Callers
2
_server_xxh3_digest
Method · 0.95
test_set_ifdeq_and_ifdne
Method · 0.95
Calls
1
decode
Method · 0.80
Tested by
no test coverage detected