diff --git a/github/Branch.py b/github/Branch.py index 6e9f094f..11f074d5 100644 --- a/github/Branch.py +++ b/github/Branch.py @@ -33,11 +33,6 @@ class Branch(github.GithubObject.NonCompletableGithubObject): """ This class represents Branchs. The reference can be found here http://developer.github.com/v3/repos/#list-branches """ - def __init__(self, requester, attributes, completed): - ''' - Adapte for __init__ change, remove later - ''' - github.GithubObject.NonCompletableGithubObject.__init__(self, requester, {}, attributes, completed) @property def commit(self): diff --git a/github/Repository.py b/github/Repository.py index fd3afbce..1fc28f2e 100644 --- a/github/Repository.py +++ b/github/Repository.py @@ -769,7 +769,7 @@ class Repository(github.GithubObject.CompletableGithubObject): None, None ) - return github.Branch.Branch(self._requester, data, completed=True) + return github.Branch.Branch(self._requester, headers, data, completed=True) def get_branches(self): """