Skip to content

Commit

Permalink
Make gen_exports not use carriage returns on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
A5rocks committed Aug 31, 2024
1 parent 3f265e4 commit 9f38190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trio/_tools/gen_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def process(files: Iterable[File], *, do_test: bool) -> None:
print("Generated sources are up to date.")
else:
for new_path, new_source in new_files.items():
with open(new_path, "w", encoding="utf-8") as f:
with open(new_path, "w", encoding="utf-8", newline="\n") as f:
f.write(new_source)
print("Regenerated sources successfully.")
if not matches_disk:
Expand Down

0 comments on commit 9f38190

Please sign in to comment.