fix protobuf formatting adding carriage returns on Windows

This commit is contained in:
Damien Elmes 2021-01-10 08:48:20 +10:00
parent 4ab52b8763
commit 9d95e11505

View file

@ -14,7 +14,7 @@ for path in sys.argv[2:]:
).decode("utf-8")
if orig != new:
if want_fix:
with open(os.path.join(workspace, path), "w") as file:
with open(os.path.join(workspace, path), "w", newline="\n") as file:
file.write(new)
print("fixed", path)
else: