Update Branch.py

This commit is contained in:
AKFish
2013-08-21 13:10:32 +08:00
parent e8e8d174fb
commit 6943f6da7f
2 changed files with 1 additions and 6 deletions
-5
View File
@@ -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):
+1 -1
View File
@@ -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):
"""