aboutsummaryrefslogtreecommitdiff
path: root/modules/cache.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-11-26 16:15:56 +0300
committerGitHub <noreply@github.com>2023-11-26 16:15:56 +0300
commit500de919edd2ab1de62546b0d16be72ffaec0c4e (patch)
tree18ba3a33b1fc0e258048b8935edc8935cfbba3b6 /modules/cache.py
parent2a40d3c603448d15e209814366f2d6ab25e52398 (diff)
parenta15dd151ffb4d11556028b34561058bc44930427 (diff)
Merge pull request #14108 from AUTOMATIC1111/json.dump(ensure_ascii=False)
json.dump(ensure_ascii=False)
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)