Skip to content

Commit

Permalink
Fix setup.py (huggingface#8798)
Browse files Browse the repository at this point in the history
enforce unix newline encoding regardless of OS creating the file
  • Loading branch information
jplu authored and stas00 committed Dec 2, 2020
1 parent 1adfce2 commit 2b3e164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def run(self):
]
target = "src/transformers/dependency_versions_table.py"
print(f"updating {target}")
with open(target, "w") as f:
with open(target, "w", encoding="utf-8", newline="\n") as f:
f.write("\n".join(content))


Expand Down

0 comments on commit 2b3e164

Please sign in to comment.