From c89bebc729b48477b0d8949d9179bb2e9a7c3bf8 Mon Sep 17 00:00:00 2001 From: AKFish Date: Wed, 21 Aug 2013 15:52:57 +0800 Subject: [PATCH] Update GitTag.py --- github/GitTag.py | 3 --- github/Repository.py | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/github/GitTag.py b/github/GitTag.py index 186f8928..58a34598 100644 --- a/github/GitTag.py +++ b/github/GitTag.py @@ -33,9 +33,6 @@ class GitTag(github.GithubObject.CompletableGithubObject): """ This class represents GitTags as returned for example by http://developer.github.com/v3/todo """ - def __init__(self, requester, attributes, completed): - # Adapte for __init__ change, remove later - github.GithubObject.CompletableGithubObject.__init__(self, requester, {}, attributes, completed) @property def message(self): diff --git a/github/Repository.py b/github/Repository.py index 290cd615..c9757d5e 100644 --- a/github/Repository.py +++ b/github/Repository.py @@ -472,7 +472,7 @@ class Repository(github.GithubObject.CompletableGithubObject): None, post_parameters ) - return github.GitTag.GitTag(self._requester, data, completed=True) + return github.GitTag.GitTag(self._requester, headers, data, completed=True) def create_git_tree(self, tree, base_tree=github.GithubObject.NotSet): """ @@ -1059,7 +1059,7 @@ class Repository(github.GithubObject.CompletableGithubObject): None, None ) - return github.GitTag.GitTag(self._requester, data, completed=True) + return github.GitTag.GitTag(self._requester, headers, data, completed=True) def get_git_tree(self, sha, recursive=github.GithubObject.NotSet): """