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

@@ -158,7 +158,7 @@ class Options:
assert not cmd_opts.freeze_settings, "saving settings is disabled"
with open(filename, "w", encoding="utf8") as file:
json.dump(self.data, file, indent=4)
json.dump(self.data, file, indent=4, ensure_ascii=False)
def same_type(self, x, y):
if x is None or y is None: