summaryrefslogtreecommitdiff
path: root/redis/commands/json/helpers.py
diff options
context:
space:
mode:
authorChayim <chayim@users.noreply.github.com>2021-11-04 13:20:31 +0200
committerGitHub <noreply@github.com>2021-11-04 13:20:31 +0200
commit8d3c61598706eb049caa66a23501018f2f416673 (patch)
tree0aa3430a7ad3b1a9212194043a9e08c187ecd9fe /redis/commands/json/helpers.py
parent72b49263f86f32c9df945433f21d3f3a7444d1a0 (diff)
downloadredis-py-8d3c61598706eb049caa66a23501018f2f416673.tar.gz
Support for json multipath ($) (#1663)
Diffstat (limited to 'redis/commands/json/helpers.py')
-rw-r--r--redis/commands/json/helpers.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/redis/commands/json/helpers.py b/redis/commands/json/helpers.py
deleted file mode 100644
index 8fb20d9..0000000
--- a/redis/commands/json/helpers.py
+++ /dev/null
@@ -1,25 +0,0 @@
-import copy
-
-
-def bulk_of_jsons(d):
- """Replace serialized JSON values with objects in a
- bulk array response (list).
- """
-
- def _f(b):
- for index, item in enumerate(b):
- if item is not None:
- b[index] = d(item)
- return b
-
- return _f
-
-
-def decode_dict_keys(obj):
- """Decode the keys of the given dictionary with utf-8."""
- newobj = copy.copy(obj)
- for k in obj.keys():
- if isinstance(k, bytes):
- newobj[k.decode("utf-8")] = newobj[k]
- newobj.pop(k)
- return newobj