Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
cb2fa7e5
Commit
cb2fa7e5
authored
Mar 21, 2014
by
yyfeng88625@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python2.x needs encode as well.
--HG-- extra : source : ab82442e2205a4ab1016711e482388590688fa15
parent
6c6fcae2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
setuptools/command/egg_info.py
setuptools/command/egg_info.py
+1
-2
No files found.
setuptools/command/egg_info.py
View file @
cb2fa7e5
...
...
@@ -304,8 +304,7 @@ def write_file(filename, contents):
sequence of strings without line terminators) to it.
"""
contents
=
"
\
n
"
.
join
(
contents
)
if
sys
.
version_info
>=
(
3
,):
contents
=
contents
.
encode
(
"utf-8"
)
contents
=
contents
.
encode
(
"utf-8"
)
f
=
open
(
filename
,
"wb"
)
# always write POSIX-style manifest
f
.
write
(
contents
)
f
.
close
()
...
...
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