Remove some duplicate attributes introduced in #522

This commit is contained in:
Wan Liuyang
2018-03-21 14:34:57 +08:00
parent c76e67b737
commit 566b28d3fa
-20
View File
@@ -157,22 +157,6 @@ class GitRelease(github.GithubObject.CompletableGithubObject):
self._completeIfNotSet(self._zipball_url)
return self._zipball_url.value
@property
def prerelease(self):
"""
:type: string
"""
self._completeIfNotSet(self._prerelease)
return self._prerelease.value
@property
def draft(self):
"""
:type: string
"""
self._completeIfNotSet(self._draft)
return self._draft.value
def delete_release(self):
headers, data = self._requester.requestJsonAndCheck(
"DELETE",
@@ -264,10 +248,6 @@ class GitRelease(github.GithubObject.CompletableGithubObject):
self._upload_url = self._makeStringAttribute(attributes["upload_url"])
if "html_url" in attributes:
self._html_url = self._makeStringAttribute(attributes["html_url"])
if "prerelease" in attributes:
self._prerelease = self._makeBoolAttribute(attributes["prerelease"])
if "draft" in attributes:
self._draft = self._makeBoolAttribute(attributes["draft"])
if "created_at" in attributes:
self._created_at = self._makeDatetimeAttribute(attributes["created_at"])
if "published_at" in attributes: