Update Comparision.py

This commit is contained in:
AKFish
2013-08-21 15:29:13 +08:00
parent 3b2e19488f
commit ced048663b
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -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):
+1 -1
View File
@@ -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):
"""