summaryrefslogtreecommitdiff
path: root/redis/commands/json/decoders.py
diff options
context:
space:
mode:
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])