adds a nicer __repr__

This commit is contained in:
Jannis Gebauer
2016-09-08 10:25:48 +02:00
parent 676f13bfa5
commit 8571d87c77
88 changed files with 322 additions and 1 deletions
+3
View File
@@ -39,6 +39,9 @@ class RepositoryKey(github.GithubObject.CompletableGithubObject):
github.GithubObject.CompletableGithubObject.__init__(self, requester, headers, attributes, completed)
self.__repoUrl = repoUrl
def __repr__(self):
return self.get__repr__({"id": self._id.value})
@property
def __customUrl(self):
return self.__repoUrl + "/keys/" + str(self.id)