diff --git a/github/Commit.py b/github/Commit.py index de9da2d1..1b9c6955 100644 --- a/github/Commit.py +++ b/github/Commit.py @@ -158,7 +158,7 @@ class Commit(github.GithubObject.CompletableGithubObject): None, post_parameters ) - return github.CommitStatus.CommitStatus(self._requester, data, completed=True) + return github.CommitStatus.CommitStatus(self._requester, headers, data, completed=True) def get_comments(self): """ diff --git a/github/CommitStatus.py b/github/CommitStatus.py index b870cd30..122c55c4 100644 --- a/github/CommitStatus.py +++ b/github/CommitStatus.py @@ -32,11 +32,6 @@ class CommitStatus(github.GithubObject.NonCompletableGithubObject): """ This class represents CommitStatuss 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.NonCompletableGithubObject.__init__(self, requester, {}, attributes, completed) @property def created_at(self):