diff --git a/github/GitBlob.py b/github/GitBlob.py index e4adf50b..ffb12f98 100644 --- a/github/GitBlob.py +++ b/github/GitBlob.py @@ -30,9 +30,6 @@ class GitBlob(github.GithubObject.CompletableGithubObject): """ This class represents GitBlobs 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 content(self): diff --git a/github/Repository.py b/github/Repository.py index 023a43be..d03ca49a 100644 --- a/github/Repository.py +++ b/github/Repository.py @@ -388,7 +388,7 @@ class Repository(github.GithubObject.CompletableGithubObject): None, post_parameters ) - return github.GitBlob.GitBlob(self._requester, data, completed=True) + return github.GitBlob.GitBlob(self._requester, headers, data, completed=True) def create_git_commit(self, message, tree, parents, author=github.GithubObject.NotSet, committer=github.GithubObject.NotSet): """ @@ -999,7 +999,7 @@ class Repository(github.GithubObject.CompletableGithubObject): None, None ) - return github.GitBlob.GitBlob(self._requester, data, completed=True) + return github.GitBlob.GitBlob(self._requester, headers, data, completed=True) def get_git_commit(self, sha): """