Skip to content

Commit 683c2bc

Browse files
author
Fabien Coelho
committed
back to json.dumps
1 parent 483382b commit 683c2bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CacheToolsUtils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ def _deserialize(self, s: str):
727727
return json.loads(s)
728728

729729
def _key(self, key):
730-
return json_key(key)
730+
return json.dumps(key, sort_keys=True, separators=(",", ":"))
731731

732732
def __getitem__(self, index):
733733
val = self._cache.get(self._key(index))

0 commit comments

Comments
 (0)