mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Simplify Wheel.supported().
This commit is contained in:
parent
5a1b97d572
commit
075358a0ec
1 changed files with 2 additions and 2 deletions
|
@ -751,10 +751,10 @@ class Wheel(object):
|
|||
|
||||
def supported(self, tags=None):
|
||||
# type: (Optional[List[Pep425Tag]]) -> bool
|
||||
"""Is this wheel supported on this system?"""
|
||||
"""Return whether this wheel is supported by one of the given tags."""
|
||||
if tags is None: # for mock
|
||||
tags = pep425tags.get_supported()
|
||||
return bool(set(tags).intersection(self.file_tags))
|
||||
return not self.file_tags.isdisjoint(tags)
|
||||
|
||||
|
||||
def _contains_egg_info(
|
||||
|
|
Loading…
Reference in a new issue