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