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
3d6068d5
Commit
3d6068d5
authored
May 17, 2014
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
with_statement is available naturally in Python 2.6
parent
f03d098e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
setuptools.egg-info/requires.txt
setuptools.egg-info/requires.txt
+4
-4
setuptools/command/egg_info.py
setuptools/command/egg_info.py
+2
-3
No files found.
setuptools.egg-info/requires.txt
View file @
3d6068d5
[ssl:sys_platform=='win32']
wincertstore==0.2
[certs]
certifi==1.0.1
\ No newline at end of file
certifi==1.0.1
[ssl:sys_platform=='win32']
wincertstore==0.2
\ No newline at end of file
setuptools/command/egg_info.py
View file @
3d6068d5
"""setuptools.command.egg_info
Create a distribution's .egg-info directory and contents"""
from
__future__
import
with_statement
import
os
import
re
...
...
@@ -238,7 +237,7 @@ class FileList(_FileList):
#Must ensure utf-8 encodability
utf8_path
=
unicode_utils
.
try_encode
(
u_path
,
"utf-8"
)
if
utf8_path
is
None
:
if
utf8_path
is
None
:
log
.
warn
(
enc_warn
,
path
,
'utf-8'
)
return
False
...
...
@@ -326,7 +325,7 @@ def write_file(filename, contents):
#assuming the contents has been vetted for utf-8 encoding
contents
=
contents
.
encode
(
"utf-8"
)
with
open
(
filename
,
"wb"
)
as
f
:
# always write POSIX-style manifest
f
.
write
(
contents
)
...
...
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