Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
b0f2dbc5
Unverified
Commit
b0f2dbc5
authored
Nov 27, 2020
by
Julien Plu
Committed by
GitHub
Nov 27, 2020
Browse files
Fix setup.py (#8798)
enforce unix newline encoding regardless of OS creating the file
parent
03bddc37
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
setup.py
setup.py
+1
-1
No files found.
setup.py
View file @
b0f2dbc5
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment