1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Simplify Wheel.supported().

This commit is contained in:
Chris Jerdonek 2019-08-08 22:49:48 -07:00
parent 5a1b97d572
commit 075358a0ec

View file

@ -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(