Fix typo in comment ('Pip < 9 and below' -> 'Pip 9 and below')

This commit is contained in:
Grey Baker
2018-06-26 17:18:39 -04:00
parent 04b709fbd0
commit 43b2c4da60
+3 -3
View File
@@ -289,7 +289,7 @@ class PyPIRepository(BaseRepository):
dist.get_metadata_lines('requires.txt')
)
try:
# Pip < 9 and below
# Pip 9 and below
reqset = RequirementSet(
self.build_dir,
self.source_dir,
@@ -386,12 +386,12 @@ class PyPIRepository(BaseRepository):
requires_python = reqset.requires_python if hasattr(reqset, 'requires_python') else self.resolver.requires_python
if requires_python:
marker_str = ''
# This corrects a logic error from the previous code which said that if
# This corrects a logic error from the previous code which said that if
# we Encountered any 'requires_python' attributes, basically only create a
# single result no matter how many we resolved. This should fix
# a majority of the remaining non-deterministic resolution issues.
if any(requires_python.startswith(op) for op in Specifier._operators.keys()):
# We are checking first if we have leading specifier operator
# We are checking first if we have leading specifier operator
# if not, we can assume we should be doing a == comparison
specifierset = list(SpecifierSet(requires_python))
# for multiple specifiers, the correct way to represent that in