summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMika Mäenpää <mika.j.maenpaa@tut.fi>2014-10-16 09:33:25 +0300
committerMika Mäenpää <mika.j.maenpaa@tut.fi>2014-10-16 09:33:25 +0300
commit134fc7ac024aa96b1d22cc421a081df6cd2724f3 (patch)
tree7831ff627b6cc8d8e6aff8e3b59d4a7bc14ae2b9
parentc3ab869711276522fe2997ba6e6332704a059d22 (diff)
downloadgitlab-134fc7ac024aa96b1d22cc421a081df6cd2724f3.tar.gz
Fixed object creation in list
-rw-r--r--gitlab.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gitlab.py b/gitlab.py
index 8b9166c..fc03794 100644
--- a/gitlab.py
+++ b/gitlab.py
@@ -222,12 +222,13 @@ class Gitlab(object):
if obj_class._returnClass:
cls = obj_class._returnClass
+ cls_kwargs = kwargs.copy()
+
# Add _created manually, because we are not creating objects
# through normal path
cls_kwargs['_created'] = True
# Remove parameters from kwargs before passing it to constructor
- cls_kwargs = kwargs.copy()
for key in ['page', 'per_page']:
if key in cls_kwargs:
del cls_kwargs[key]