add gitattribute to force LF line endings and set cleanyaml.py to read/write as utf8 always

This commit is contained in:
Brad Laney committed 2020-05-07 00:35:21 -05:00
1 parent 36bfbf3ad0
commit e30b5bd8b5
2 files changed
+11 -2

No files matched your search

+2 -2
View File
@@ -22,7 +22,7 @@ def main():
for x in yfiles:
print("Doing: {}".format(x))
with open(x, 'r') as r:
with open(x, 'r', encoding="utf8") as r:
data = yaml.full_load(r)
if x == "feats.yaml":
for i in data['feat']:
@@ -44,7 +44,7 @@ def main():
final = yaml.safe_dump(data, allow_unicode=True)
with open(x, 'w') as f:
with open(x, 'w', encoding="utf8") as f:
f.write(final)
print("\tDone.")