Update UserKey.py

This commit is contained in:
AKFish
2013-08-21 17:19:11 +08:00
parent 1070631c73
commit c4e8972be1
2 changed files with 2 additions and 5 deletions
+2 -2
View File
@@ -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):
"""
-3
View File
@@ -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):