mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Update UserKey.py
This commit is contained in:
@@ -409,7 +409,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
None,
|
||||
post_parameters
|
||||
)
|
||||
return github.UserKey.UserKey(self._requester, data, completed=True)
|
||||
return github.UserKey.UserKey(self._requester, headers, data, completed=True)
|
||||
|
||||
def create_repo(self, name, description=github.GithubObject.NotSet, homepage=github.GithubObject.NotSet, private=github.GithubObject.NotSet, has_issues=github.GithubObject.NotSet, has_wiki=github.GithubObject.NotSet, has_downloads=github.GithubObject.NotSet, auto_init=github.GithubObject.NotSet, gitignore_template=github.GithubObject.NotSet):
|
||||
"""
|
||||
@@ -680,7 +680,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
None,
|
||||
None
|
||||
)
|
||||
return github.UserKey.UserKey(self._requester, data, completed=True)
|
||||
return github.UserKey.UserKey(self._requester, headers, data, completed=True)
|
||||
|
||||
def get_keys(self):
|
||||
"""
|
||||
|
||||
@@ -31,9 +31,6 @@ class UserKey(github.GithubObject.CompletableGithubObject):
|
||||
"""
|
||||
This class represents UserKeys. The reference can be found here http://developer.github.com/v3/users/keys/
|
||||
"""
|
||||
def __init__(self, requester, attributes, completed):
|
||||
# Adapte for __init__ change, remove later
|
||||
github.GithubObject.CompletableGithubObject.__init__(self, requester, {}, attributes, completed)
|
||||
|
||||
@property
|
||||
def id(self):
|
||||
|
||||
Reference in New Issue
Block a user