diff --git a/setup.py b/setup.py index d415bb28f..a1fcdf401 100644 --- a/setup.py +++ b/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))