json.dump(ensure_ascii=False)

improve json readability
This commit is contained in:
w-e-w
2023-11-26 21:55:50 +09:00
parent 2a40d3c603
commit a15dd151ff
5 changed files with 5 additions and 5 deletions

View File

@@ -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)