Skip to content

Commit 274ab70

Browse files
committed
Update GitObject.py
1 parent 0879cbb commit 274ab70

3 files changed

Lines changed: 2 additions & 7 deletions

File tree

github/GitObject.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ class GitObject(github.GithubObject.NonCompletableGithubObject):
3030
"""
3131
This class represents GitObjects as returned for example by http://developer.github.com/v3/todo
3232
"""
33-
def __init__(self, requester, attributes, completed):
34-
'''
35-
Adapte for __init__ change, remove later
36-
'''
37-
github.GithubObject.NonCompletableGithubObject.__init__(self, requester, {}, attributes, completed)
3833

3934
@property
4035
def sha(self):

github/GitRef.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def _initAttributes(self):
9999
def _useAttributes(self, attributes):
100100
if "object" in attributes: # pragma no branch
101101
assert attributes["object"] is None or isinstance(attributes["object"], dict), attributes["object"]
102-
self._object = None if attributes["object"] is None else github.GitObject.GitObject(self._requester, attributes["object"], completed=False)
102+
self._object = None if attributes["object"] is None else github.GitObject.GitObject(self._requester, self._headers, attributes["object"], completed=False)
103103
if "ref" in attributes: # pragma no branch
104104
assert attributes["ref"] is None or isinstance(attributes["ref"], (str, unicode)), attributes["ref"]
105105
self._ref = attributes["ref"]

github/GitTag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def _useAttributes(self, attributes):
9696
self._message = attributes["message"]
9797
if "object" in attributes: # pragma no branch
9898
assert attributes["object"] is None or isinstance(attributes["object"], dict), attributes["object"]
99-
self._object = None if attributes["object"] is None else github.GitObject.GitObject(self._requester, attributes["object"], completed=False)
99+
self._object = None if attributes["object"] is None else github.GitObject.GitObject(self._requester, self._headers, attributes["object"], completed=False)
100100
if "sha" in attributes: # pragma no branch
101101
assert attributes["sha"] is None or isinstance(attributes["sha"], (str, unicode)), attributes["sha"]
102102
self._sha = attributes["sha"]

0 commit comments

Comments
 (0)