☰
Debian Codegraph
@
6.1.1-3
6.1.1-1
/
/
valkey
/
commands
/
search
/
_util.py
☽
☼
valkey/commands/search/_util.py
code
plain
raw
Expat
2022-2023, Redis, inc.; 2024-present, valkey-py contributors
debian/copyright
1
def to_string(s):
2
if isinstance(s, str):
3
return s
4
elif isinstance(s, bytes):
5
return s.decode("utf-8", "ignore")
6
else:
7
return s # Not a string we care about