Skip to content

Commit b38269a

Browse files
committed
Removed getsshkey from __init__.py
1 parent 15331e3 commit b38269a

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

gitlab/__init__.py

-16
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,6 @@ def setsudo(self, user=None):
4343
else:
4444
self.headers['SUDO'] = user
4545

46-
def getsshkey(self, key_id):
47-
"""
48-
Get a single ssh key identified by key_id
49-
50-
:param key_id: the id of the key
51-
:return: the key itself
52-
"""
53-
request = requests.get(
54-
'{0}/{1}'.format(self.keys_url, key_id),
55-
headers=self.headers, verify=self.verify_ssl, auth=self.auth, timeout=self.timeout)
56-
57-
if request.status_code == 200:
58-
return request.json()
59-
else:
60-
return False
61-
6246
def getprojectsowned(self, page=1, per_page=20):
6347
"""
6448
Returns a dictionary of all the projects for the current user

0 commit comments

Comments
 (0)