Update GitBlob.py

This commit is contained in:
AKFish
2013-08-21 15:48:08 +08:00
parent dc8173a532
commit b43de50dc4
2 changed files with 2 additions and 5 deletions
-3
View File
@@ -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):
+2 -2
View File
@@ -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):
"""