diff options
author | Chayim <chayim@users.noreply.github.com> | 2021-11-04 13:20:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-04 13:20:31 +0200 |
commit | 8d3c61598706eb049caa66a23501018f2f416673 (patch) | |
tree | 0aa3430a7ad3b1a9212194043a9e08c187ecd9fe /redis/commands/helpers.py | |
parent | 72b49263f86f32c9df945433f21d3f3a7444d1a0 (diff) | |
download | redis-py-8d3c61598706eb049caa66a23501018f2f416673.tar.gz |
Support for json multipath ($) (#1663)
Diffstat (limited to 'redis/commands/helpers.py')
-rw-r--r-- | redis/commands/helpers.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/redis/commands/helpers.py b/redis/commands/helpers.py index 48ee556..2a4298c 100644 --- a/redis/commands/helpers.py +++ b/redis/commands/helpers.py @@ -17,7 +17,10 @@ def list_or_args(keys, args): def nativestr(x): """Return the decoded binary string, or a string, depending on type.""" - return x.decode("utf-8", "replace") if isinstance(x, bytes) else x + r = x.decode("utf-8", "replace") if isinstance(x, bytes) else x + if r == 'null': + return + return r def delist(x): |