fix protobuf formatting adding carriage returns on Windows

This commit is contained in:
Damien Elmes 2021-01-10 08:48:20 +10:00
parent 8c6d0e6229
commit 4d471612ec

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: