mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Update Comparision.py
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user