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
599c4f7f
Commit
599c4f7f
authored
Jul 20, 2016
by
Jason R. Coombs
Committed by
GitHub
Jul 20, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #644 from stepshal/spacing-comment-hash
Fix spacing after comment hash.
parents
7303c328
93612718
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
setuptools/package_index.py
setuptools/package_index.py
+1
-1
setuptools/py31compat.py
setuptools/py31compat.py
+2
-2
setuptools/site-patch.py
setuptools/site-patch.py
+2
-2
setuptools/tests/test_dist_info.py
setuptools/tests/test_dist_info.py
+2
-2
No files found.
setuptools/package_index.py
View file @
599c4f7f
...
...
@@ -325,7 +325,7 @@ class PackageIndex(Environment):
base = f.url # handle redirects
page = f.read()
if not isinstance(page, str): # We are in Python 3 and got bytes. We want str.
if not isinstance(page, str):
# We are in Python 3 and got bytes. We want str.
if isinstance(f, urllib.error.HTTPError):
# Errors have no charset, assume latin1:
charset = 'latin-1'
...
...
setuptools/py31compat.py
View file @
599c4f7f
...
...
@@ -29,7 +29,7 @@ except ImportError:
"""
def
__init__
(
self
):
self
.
name
=
None
# Handle mkdtemp raising an exception
self
.
name
=
None
# Handle mkdtemp raising an exception
self
.
name
=
tempfile
.
mkdtemp
()
def
__enter__
(
self
):
...
...
@@ -38,7 +38,7 @@ except ImportError:
def
__exit__
(
self
,
exctype
,
excvalue
,
exctrace
):
try
:
shutil
.
rmtree
(
self
.
name
,
True
)
except
OSError
:
#
removal errors are not the only possible
except
OSError
:
#
removal errors are not the only possible
pass
self
.
name
=
None
...
...
setuptools/site-patch.py
View file @
599c4f7f
...
...
@@ -23,7 +23,7 @@ def __boot():
break
else
:
try
:
import
imp
# Avoid import loop in Python >= 3.3
import
imp
# Avoid import loop in Python >= 3.3
stream
,
path
,
descr
=
imp
.
find_module
(
'site'
,
[
item
])
except
ImportError
:
continue
...
...
@@ -38,7 +38,7 @@ def __boot():
else
:
raise
ImportError
(
"Couldn't find the real 'site' module"
)
known_paths
=
dict
([(
makepath
(
item
)[
1
],
1
)
for
item
in
sys
.
path
])
# 2.2 comp
known_paths
=
dict
([(
makepath
(
item
)[
1
],
1
)
for
item
in
sys
.
path
])
# 2.2 comp
oldpos
=
getattr
(
sys
,
'__egginsert'
,
0
)
# save old insertion position
sys
.
__egginsert
=
0
# and reset the current one
...
...
setuptools/tests/test_dist_info.py
View file @
599c4f7f
...
...
@@ -25,8 +25,8 @@ class TestDistInfo:
unversioned
=
dists
[
'UnversionedDistribution'
]
versioned
=
dists
[
'VersionedDistribution'
]
assert
versioned
.
version
==
'2.718'
# from filename
assert
unversioned
.
version
==
'0.3'
# from METADATA
assert
versioned
.
version
==
'2.718'
# from filename
assert
unversioned
.
version
==
'0.3'
# from METADATA
def
test_conditional_dependencies
(
self
):
specs
=
'splort==4'
,
'quux>=1.1'
...
...
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