From d6170e36de261f8107cdc40e1e6e3c91bac0eb3d Mon Sep 17 00:00:00 2001 From: AKFish Date: Wed, 21 Aug 2013 14:03:57 +0800 Subject: [PATCH] Update IssuePullRequest.py --- github/Issue.py | 2 +- github/IssuePullRequest.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/github/Issue.py b/github/Issue.py index fd62dccf..502263de 100644 --- a/github/Issue.py +++ b/github/Issue.py @@ -412,7 +412,7 @@ class Issue(github.GithubObject.CompletableGithubObject): self._number = attributes["number"] if "pull_request" in attributes: # pragma no branch assert attributes["pull_request"] is None or isinstance(attributes["pull_request"], dict), attributes["pull_request"] - self._pull_request = None if attributes["pull_request"] is None else github.IssuePullRequest.IssuePullRequest(self._requester, attributes["pull_request"], completed=False) + self._pull_request = None if attributes["pull_request"] is None else github.IssuePullRequest.IssuePullRequest(self._requester, self._headers, attributes["pull_request"], completed=False) if "repository" in attributes: # pragma no branch assert attributes["repository"] is None or isinstance(attributes["repository"], dict), attributes["repository"] self._repository = None if attributes["repository"] is None else github.Repository.Repository(self._requester, attributes["repository"], completed=False) diff --git a/github/IssuePullRequest.py b/github/IssuePullRequest.py index 075b61ce..cdc1b44b 100644 --- a/github/IssuePullRequest.py +++ b/github/IssuePullRequest.py @@ -30,11 +30,6 @@ class IssuePullRequest(github.GithubObject.NonCompletableGithubObject): """ This class represents IssuePullRequests 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 diff_url(self):