def clean_semver(cls, version_spec):
        return re.sub(r"([<>=~])\s+?v?", "\\1", version_spec, re.IGNORECASE)
def reorder_item(self, item, position):
    new_position = min(max(position, 0), len(self._items) - 1)