def clean_semver(cls, version_spec):
        return re.sub(r"([<>=~])\s+?v?", "\\1", version_spec, re.IGNORECASE)
def setdefault(self, key, default=None):
        return self._collection.setdefault(key, self._from_python(key, default))