diff options
Diffstat (limited to 'redis/commands/json/decoders.py')
-rw-r--r-- | redis/commands/json/decoders.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/redis/commands/json/decoders.py b/redis/commands/json/decoders.py new file mode 100644 index 0000000..0ee102a --- /dev/null +++ b/redis/commands/json/decoders.py @@ -0,0 +1,12 @@ +def int_or_list(b): + if isinstance(b, int): + return b + else: + return b + + +def int_or_none(b): + if b is None: + return None + if isinstance(b, int): + return b |