解决输出乱码

This commit is contained in:
Jing Ling
2020-07-08 10:23:14 +08:00
parent b9e3ba334a
commit 584323677d
3 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -254,7 +254,7 @@ class Module(object):
path.mkdir(parents=True, exist_ok=True)
name = self.source + '.json'
path = path.joinpath(name)
with open(path, mode='w', encoding='utf-8', errors='ignore') as file:
with open(path, mode='w', errors='ignore') as file:
result = {'domain': self.domain,
'name': self.module,
'source': self.source,