Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 134fc7a

Browse files
committedOct 16, 2014
Fixed object creation in list
1 parent c3ab869 commit 134fc7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎gitlab.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,13 @@ def list(self, obj_class, **kwargs):
222222
if obj_class._returnClass:
223223
cls = obj_class._returnClass
224224

225+
cls_kwargs = kwargs.copy()
226+
225227
# Add _created manually, because we are not creating objects
226228
# through normal path
227229
cls_kwargs['_created'] = True
228230

229231
# Remove parameters from kwargs before passing it to constructor
230-
cls_kwargs = kwargs.copy()
231232
for key in ['page', 'per_page']:
232233
if key in cls_kwargs:
233234
del cls_kwargs[key]

0 commit comments

Comments
 (0)
Failed to load comments.