@repo.setter
def repo(self, value):
    if isinstance(value, str):
        self._repo = urlparse.quote(value)
    else:
        self._repo = value
@repo.setter
def repo(self, value):
    if isinstance(value, str):
        self._repo = urlparse.quote(value)
    else:
        self._repo = value