Skip to content

Commit 49eab91

Browse files
author
Gauvain Pocentek
committed
minor syntax change: canGetList => canList
1 parent 5dda6e6 commit 49eab91

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gitlab.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ class GitlabObject(object):
386386
_returnClass = None
387387
_constructorTypes = None
388388
canGet = True
389-
canGetList = True
389+
canList = True
390390
canCreate = True
391391
canUpdate = True
392392
canDelete = True
@@ -397,7 +397,7 @@ class GitlabObject(object):
397397

398398
@classmethod
399399
def list(cls, gl, **kwargs):
400-
if not cls.canGetList:
400+
if not cls.canList:
401401
raise NotImplementedError
402402

403403
if not cls._url:
@@ -407,7 +407,7 @@ def list(cls, gl, **kwargs):
407407

408408
def _getListOrObject(self, cls, id, **kwargs):
409409
if id is None:
410-
if not cls.canGetList:
410+
if not cls.canList:
411411
raise GitlabGetError
412412

413413
return cls.list(self.gitlab, **kwargs)
@@ -518,7 +518,7 @@ class CurrentUserKey(GitlabObject):
518518

519519
class CurrentUser(GitlabObject):
520520
_url = '/user'
521-
canGetList = False
521+
canList = False
522522
canCreate = False
523523
canUpdate = False
524524
canDelete = False

0 commit comments

Comments
 (0)