From 748f362695988d021d5a88e5015b8c49539926a0 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 15 Dec 2018 09:13:10 +1000 Subject: [PATCH] fix the other json.dumps call previous change was in the wrong place 33ae6404f1bd9d36d5b0d4062eae816a7f657f7b --- aqt/addons.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aqt/addons.py b/aqt/addons.py index e89d9695c..51d735a1e 100644 --- a/aqt/addons.py +++ b/aqt/addons.py @@ -87,7 +87,7 @@ When loading '%(name)s': def writeAddonMeta(self, dir, meta): path = self._addonMetaPath(dir) with open(path, "w", encoding="utf8") as f: - json.dump(meta, f, ensure_ascii=False) + json.dump(meta, f) def toggleEnabled(self, dir): meta = self.addonMeta(dir) @@ -489,7 +489,8 @@ class ConfigEditor(QDialog): def updateText(self, conf): self.form.editor.setPlainText( - json.dumps(conf,sort_keys=True,indent=4, separators=(',', ': '))) + json.dumps(conf, ensure_ascii=False, sort_keys=True, + indent=4, separators=(',', ': '))) def accept(self): txt = self.form.editor.toPlainText()