diff --git a/github/AuthenticatedUser.py b/github/AuthenticatedUser.py index 5c4c4866..7e4e337e 100644 --- a/github/AuthenticatedUser.py +++ b/github/AuthenticatedUser.py @@ -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): """ diff --git a/github/Authorization.py b/github/Authorization.py index ec9d2241..14cc1350 100644 --- a/github/Authorization.py +++ b/github/Authorization.py @@ -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):