def __init__(self, repo, client=None): self._ident = Identifier.from_string(repo) if self._ident.repo is None: raise GithubError("Invalid repo string '{0}'".format(repo)) self.org = self._ident.org self.repo = self._ident.repo self.client = client or make_client(self._ident)
def __init__(self, org, client=None): self._ident = Identifier.from_string(org) self.org = self._ident.org self.client = client or make_client(self._ident)