Fix setup.py (#8798)
enforce unix newline encoding regardless of OS creating the file
This commit is contained in:
2
setup.py
2
setup.py
@@ -165,7 +165,7 @@ class DepsTableUpdateCommand(Command):
|
|||||||
]
|
]
|
||||||
target = "src/transformers/dependency_versions_table.py"
|
target = "src/transformers/dependency_versions_table.py"
|
||||||
print(f"updating {target}")
|
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))
|
f.write("\n".join(content))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user