CacheToolsUtils 9.1__tar.gz → 9.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cachetoolsutils-9.1 → cachetoolsutils-9.2}/CacheToolsUtils.egg-info/PKG-INFO +1 -1
- {cachetoolsutils-9.1 → cachetoolsutils-9.2}/CacheToolsUtils.py +7 -3
- {cachetoolsutils-9.1 → cachetoolsutils-9.2}/PKG-INFO +1 -1
- {cachetoolsutils-9.1 → cachetoolsutils-9.2}/pyproject.toml +1 -1
- {cachetoolsutils-9.1 → cachetoolsutils-9.2}/CacheToolsUtils.egg-info/SOURCES.txt +0 -0
- {cachetoolsutils-9.1 → cachetoolsutils-9.2}/CacheToolsUtils.egg-info/dependency_links.txt +0 -0
- {cachetoolsutils-9.1 → cachetoolsutils-9.2}/CacheToolsUtils.egg-info/requires.txt +0 -0
- {cachetoolsutils-9.1 → cachetoolsutils-9.2}/CacheToolsUtils.egg-info/top_level.txt +0 -0
- {cachetoolsutils-9.1 → cachetoolsutils-9.2}/LICENSE +0 -0
- {cachetoolsutils-9.1 → cachetoolsutils-9.2}/MANIFEST.in +0 -0
- {cachetoolsutils-9.1 → cachetoolsutils-9.2}/README.md +0 -0
- {cachetoolsutils-9.1 → cachetoolsutils-9.2}/setup.cfg +0 -0
|
@@ -454,10 +454,14 @@ def cacheFunctions(
|
|
|
454
454
|
# JSON-based key function
|
|
455
455
|
# NOTE obviously this only works if parameters are json-serializable…
|
|
456
456
|
def json_key(*args, **kwargs):
|
|
457
|
-
if kwargs:
|
|
458
|
-
|
|
457
|
+
if kwargs: # object
|
|
458
|
+
if args:
|
|
459
|
+
val = {"*": args, "**": kwargs}
|
|
460
|
+
else:
|
|
461
|
+
val = {"**": kwargs}
|
|
459
462
|
else: # array
|
|
460
|
-
|
|
463
|
+
val = args
|
|
464
|
+
return json.dumps(val, sort_keys=True, separators=(",", ":"))
|
|
461
465
|
|
|
462
466
|
|
|
463
467
|
# Hmmm…
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|