fix: [tool] Write in utf8
parent
07fa7a0553
commit
a7bba2caeb
950
MANIFEST.json
950
MANIFEST.json
File diff suppressed because it is too large
Load Diff
|
@ -14,7 +14,7 @@ def fetchTaxonomies():
|
|||
allTaxonomies = list(taxonomiesFolder.glob('./*/machinetag.json'))
|
||||
allTaxonomies.sort()
|
||||
for taxonomyFile in allTaxonomies:
|
||||
with open(taxonomyFile) as f:
|
||||
with open(taxonomyFile, 'rb') as f:
|
||||
taxonomy = json.load(f)
|
||||
taxonomies.append(taxonomy)
|
||||
return taxonomies
|
||||
|
@ -39,7 +39,7 @@ def generateManifest(taxonomies):
|
|||
|
||||
def saveManifest(manifest):
|
||||
with open(TAXONOMY_ROOT_PATH / 'MANIFEST.json', 'w') as f:
|
||||
json.dump(manifest, f, indent=2, sort_keys=True)
|
||||
json.dump(manifest, f, indent=2, sort_keys=True, ensure_ascii=False)
|
||||
|
||||
def awesomePrint(text):
|
||||
print('\033[1;32m{}\033[0;39m'.format(text))
|
||||
|
|
|
@ -14,7 +14,7 @@ def fetchTaxonomies():
|
|||
allTaxonomies = list(taxonomiesFolder.glob('./*/machinetag.json'))
|
||||
allTaxonomies.sort()
|
||||
for taxonomyFile in allTaxonomies:
|
||||
with open(taxonomyFile) as f:
|
||||
with open(taxonomyFile, 'rb') as f:
|
||||
taxonomy = json.load(f)
|
||||
taxonomies.append(taxonomy)
|
||||
return taxonomies
|
||||
|
@ -39,7 +39,7 @@ def generateMarkdown(taxonomies):
|
|||
return markdown
|
||||
|
||||
def saveMarkdown(markdown):
|
||||
with open(TAXONOMY_ROOT_PATH / 'Summary.md', 'w') as f:
|
||||
with open(TAXONOMY_ROOT_PATH / 'summary.md', 'w') as f:
|
||||
f.write(markdown)
|
||||
|
||||
def awesomePrint(text):
|
||||
|
|
Loading…
Reference in New Issue