mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
Fix setup.py (#8798)
enforce unix newline encoding regardless of OS creating the file
This commit is contained in:
parent
03bddc375b
commit
b0f2dbc594
1 changed files with 1 additions and 1 deletions
2
setup.py
2
setup.py
|
|
@ -165,7 +165,7 @@ class DepsTableUpdateCommand(Command):
|
|||
]
|
||||
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))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue