def clean_semver(cls, version_spec):
        return re.sub(r"([<>=~])\s+?v?", "\\1", version_spec, re.IGNORECASE)
def matchfn(self, f):
        for match in self._matchers:
            if match(f):
                return True
        return False