From b0f2dbc59482b58056e4196b43d5e0552edd41bf Mon Sep 17 00:00:00 2001 From: Julien Plu Date: Fri, 27 Nov 2020 18:25:20 +0100 Subject: [PATCH] Fix setup.py (#8798) enforce unix newline encoding regardless of OS creating the file --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))