MCPcopy
hub / github.com/redis/redis-py / _ensure_str

Method _ensure_str

tests/test_asyncio/test_commands.py:1372–1373  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

1370 assert await r.get("a") is None
1371
1372 def _ensure_str(self, x):
1373 return x.decode("ascii") if isinstance(x, (bytes, bytearray)) else x
1374
1375 async def _server_xxh3_digest(self, r, key):
1376 """

Callers 1

_server_xxh3_digestMethod · 0.95

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected