def clean_semver(cls, version_spec):
        return re.sub(r"([<>=~])\s+?v?", "\\1", version_spec, re.IGNORECASE)
def matchfn(self, f):
        return self._m1(f) and (not self._m2(f) or self._m1.exact(f))