fix: set ensure_ascii to False because utf8 is legit

This commit is contained in:
Phillip Cloud 2021-12-29 12:35:59 -05:00
parent 2fde8725f6
commit 6626c0425a
No known key found for this signature in database
GPG key ID: D908212070FD785E

View file

@ -22,7 +22,9 @@ def main(input, output, fields_to_remove):
if any_removed:
dep["version"] = "*"
json.dump(data, output, separators=(",", ":"))
# Set ensure_ascii to False because TOML is valid UTF-8 so text that can't
# be represented in ASCII is perfectly legitimate
json.dump(data, output, separators=(",", ":"), ensure_ascii=False)
if __name__ == "__main__":