From 451934741c92714bce89fe2cc54595659cb11cf7 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 1ae2a08900613a25a4fb90a936b62c03cb447a9a --- 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()