Updates api reference url in docstrings for repository keys

This commit is contained in:
Srijan Choudhary
2013-05-19 02:35:04 +05:30
parent e1c7052ff1
commit 161097b23c
+3 -3
View File
@@ -19,7 +19,7 @@ import github.GithubObject
class RepositoryKey(github.GithubObject.CompletableGithubObject):
"""
This class represents RepositoryKeys as returned for example by http://developer.github.com/v3/todo
This class represents RepositoryKeys as returned for example by http://developer.github.com/v3/keys
"""
def __init__(self, requester, attributes, completed, repoUrl):
@@ -72,7 +72,7 @@ class RepositoryKey(github.GithubObject.CompletableGithubObject):
def delete(self):
"""
:calls: `DELETE /repos/:user/:repo/keys/:id <http://developer.github.com/v3/todo>`_
:calls: `DELETE /repos/:user/:repo/keys/:id <http://developer.github.com/v3/keys>`_
:rtype: None
"""
headers, data = self._requester.requestJsonAndCheck(
@@ -84,7 +84,7 @@ class RepositoryKey(github.GithubObject.CompletableGithubObject):
def edit(self, title=github.GithubObject.NotSet, key=github.GithubObject.NotSet):
"""
:calls: `PATCH /repos/:user/:repo/keys/:id <http://developer.github.com/v3/todo>`_
:calls: `PATCH /repos/:user/:repo/keys/:id <http://developer.github.com/v3/keys>`_
:param title: string
:param key: string
:rtype: None