Skip to content

Commit 44d0dc5

Browse files
author
Gauvain Pocentek
committed
remove unused _returnClass attribute
1 parent 58433d2 commit 44d0dc5

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

gitlab/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,6 @@ def list(self, obj_class, **kwargs):
351351
raise_error_from_response(r, GitlabListError)
352352

353353
cls = obj_class
354-
if obj_class._returnClass:
355-
cls = obj_class._returnClass
356-
357354
cls_kwargs = kwargs.copy()
358355

359356
# Add _from_api manually, because we are not creating objects

gitlab/objects.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ class GitlabObject(object):
177177
_urlPlural = None
178178
_id_in_delete_url = True
179179
_id_in_update_url = True
180-
_returnClass = None
181180
_constructorTypes = None
182181

183182
#: Whether _get_list_or_object should return list or object when id is None

0 commit comments

Comments
 (0)