mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 03:41:08 +00:00
Update GitBlob.py
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user