Skip to content

Commit

Permalink
Merge pull request #110 from chrwen-omicron/remove_next_url_from_cls_…
Browse files Browse the repository at this point in the history
…kwargs

Remove 'next_url' from kwargs before passing it to the cls constructor.
  • Loading branch information
Gauvain Pocentek committed May 15, 2016
2 parents fd45397 + c261875 commit 05dd8dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitlab/__init__.py
Expand Up @@ -287,7 +287,7 @@ def _raw_list(self, path, cls, **kwargs):
get_all_results = kwargs.get('all', False)

# Remove parameters from kwargs before passing it to constructor
for key in ['all', 'page', 'per_page', 'sudo']:
for key in ['all', 'page', 'per_page', 'sudo', 'next_url']:
if key in cls_kwargs:
del cls_kwargs[key]

Expand Down Expand Up @@ -395,7 +395,7 @@ def list(self, obj_class, **kwargs):
get_all_results = params.get('all', False)

# Remove parameters from kwargs before passing it to constructor
for key in ['all', 'page', 'per_page', 'sudo']:
for key in ['all', 'page', 'per_page', 'sudo', 'next_url']:
if key in cls_kwargs:
del cls_kwargs[key]

Expand Down

0 comments on commit 05dd8dc

Please sign in to comment.