aboutsummaryrefslogtreecommitdiff
path: root/modules/cache.py
diff options
context:
space:
mode:
authorw-e-w <40751091+w-e-w@users.noreply.github.com>2023-11-26 21:55:50 +0900
committerw-e-w <40751091+w-e-w@users.noreply.github.com>2023-11-26 21:56:21 +0900
commita15dd151ffb4d11556028b34561058bc44930427 (patch)
tree18ba3a33b1fc0e258048b8935edc8935cfbba3b6 /modules/cache.py
parent2a40d3c603448d15e209814366f2d6ab25e52398 (diff)
json.dump(ensure_ascii=False)
improve json readability
Diffstat (limited to 'modules/cache.py')
-rw-r--r--modules/cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/cache.py b/modules/cache.py
index ff26a213..2d37e7b9 100644
--- a/modules/cache.py
+++ b/modules/cache.py
@@ -32,7 +32,7 @@ def dump_cache():
with cache_lock:
cache_filename_tmp = cache_filename + "-"
with open(cache_filename_tmp, "w", encoding="utf8") as file:
- json.dump(cache_data, file, indent=4)
+ json.dump(cache_data, file, indent=4, ensure_ascii=False)
os.replace(cache_filename_tmp, cache_filename)