From c7aeaddfa8897ed9a23764bbb4beda29403ab413 Mon Sep 17 00:00:00 2001 From: AKFish Date: Wed, 21 Aug 2013 14:13:14 +0800 Subject: [PATCH] Fix PullRequestMergeStatus.py --- github/PullRequest.py | 2 +- github/PullRequestMergeStatus.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/github/PullRequest.py b/github/PullRequest.py index 0adad292..ba02376e 100644 --- a/github/PullRequest.py +++ b/github/PullRequest.py @@ -462,7 +462,7 @@ class PullRequest(github.GithubObject.CompletableGithubObject): None, post_parameters ) - return github.PullRequestMergeStatus.PullRequestMergeStatus(self._requester, data, completed=True) + return github.PullRequestMergeStatus.PullRequestMergeStatus(self._requester, headers, data, completed=True) def _initAttributes(self): self._additions = github.GithubObject.NotSet diff --git a/github/PullRequestMergeStatus.py b/github/PullRequestMergeStatus.py index 7151b21f..f9bae790 100644 --- a/github/PullRequestMergeStatus.py +++ b/github/PullRequestMergeStatus.py @@ -31,11 +31,6 @@ class PullRequestMergeStatus(github.GithubObject.NonCompletableGithubObject): """ This class represents PullRequestMergeStatuss. The reference can be found here http://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged """ - def __init__(self, requester, attributes, completed): - ''' - Adapte for __init__ change, remove later - ''' - github.GithubObject.NonCompletableGithubObject.__init__(self, requester, {}, attributes, completed) @property def merged(self):