From ced048663ba392bfee2543cea5f5fbf875771c0e Mon Sep 17 00:00:00 2001 From: AKFish Date: Wed, 21 Aug 2013 15:29:13 +0800 Subject: [PATCH] Update Comparision.py --- github/Comparison.py | 3 --- github/Repository.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/github/Comparison.py b/github/Comparison.py index 3182b43d..a0a3d6de 100644 --- a/github/Comparison.py +++ b/github/Comparison.py @@ -33,9 +33,6 @@ class Comparison(github.GithubObject.CompletableGithubObject): """ This class represents Comparisons 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 ahead_by(self): diff --git a/github/Repository.py b/github/Repository.py index 8b8b5924..25fc4a14 100644 --- a/github/Repository.py +++ b/github/Repository.py @@ -338,7 +338,7 @@ class Repository(github.GithubObject.CompletableGithubObject): None, None ) - return github.Comparison.Comparison(self._requester, data, completed=True) + return github.Comparison.Comparison(self._requester, headers, data, completed=True) def create_download(self, name, size, description=github.GithubObject.NotSet, content_type=github.GithubObject.NotSet): """