summaryrefslogtreecommitdiff
path: root/redis/commands/json/decoders.py
diff options
context:
space:
mode:
authorChayim <chayim@users.noreply.github.com>2021-12-02 18:34:36 +0200
committerGitHub <noreply@github.com>2021-12-02 18:34:36 +0200
commitf5d5610f0b77468bc84c3c9764a5d86ee7883410 (patch)
tree1c985280231667e1ad9cede848915b50a02940d7 /redis/commands/json/decoders.py
parentc0b38584dc48f821606150d7965dca88c402192b (diff)
parentd4a9825a72e1b7715d79ce8134e678d9ef537dce (diff)
downloadredis-py-f5d5610f0b77468bc84c3c9764a5d86ee7883410.tar.gz
Merge branch 'master' into ROLE
Diffstat (limited to 'redis/commands/json/decoders.py')
-rw-r--r--redis/commands/json/decoders.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/redis/commands/json/decoders.py b/redis/commands/json/decoders.py
index b19395c..b938471 100644
--- a/redis/commands/json/decoders.py
+++ b/redis/commands/json/decoders.py
@@ -1,6 +1,7 @@
-from ..helpers import nativestr
-import re
import copy
+import re
+
+from ..helpers import nativestr
def bulk_of_jsons(d):
@@ -33,7 +34,7 @@ def unstring(obj):
One can't simply call int/float in a try/catch because there is a
semantic difference between (for example) 15.0 and 15.
"""
- floatreg = '^\\d+.\\d+$'
+ floatreg = "^\\d+.\\d+$"
match = re.findall(floatreg, obj)
if match != []:
return float(match[0])