Update Authorization.py

This commit is contained in:
AKFish
2013-08-21 15:09:34 +08:00
parent 28a49b94d8
commit 0e19d8e04e
2 changed files with 2 additions and 5 deletions
+2 -2
View File
@@ -348,7 +348,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
None,
post_parameters
)
return github.Authorization.Authorization(self._requester, data, completed=True)
return github.Authorization.Authorization(self._requester, headers, data, completed=True)
def create_fork(self, repo):
"""
@@ -516,7 +516,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
None,
None
)
return github.Authorization.Authorization(self._requester, data, completed=True)
return github.Authorization.Authorization(self._requester, headers, data, completed=True)
def get_authorizations(self):
"""
-3
View File
@@ -32,9 +32,6 @@ class Authorization(github.GithubObject.CompletableGithubObject):
"""
This class represents Authorizations 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 app(self):