From 44d0dc54fb7edf7de4e50ca34d430fe734c0e8cc Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Sun, 14 Feb 2016 10:57:13 +0100 Subject: remove unused _returnClass attribute --- gitlab/__init__.py | 3 --- gitlab/objects.py | 1 - 2 files changed, 4 deletions(-) (limited to 'gitlab') diff --git a/gitlab/__init__.py b/gitlab/__init__.py index 1bb148e..a947084 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -351,9 +351,6 @@ class Gitlab(object): raise_error_from_response(r, GitlabListError) cls = obj_class - if obj_class._returnClass: - cls = obj_class._returnClass - cls_kwargs = kwargs.copy() # Add _from_api manually, because we are not creating objects diff --git a/gitlab/objects.py b/gitlab/objects.py index 5dfc80a..8146816 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -177,7 +177,6 @@ class GitlabObject(object): _urlPlural = None _id_in_delete_url = True _id_in_update_url = True - _returnClass = None _constructorTypes = None #: Whether _get_list_or_object should return list or object when id is None -- cgit v1.2.1