Skip to content

Commit 3b1d1dd

Browse files
committed
Allow per_page to be used with generators.
Fixes python-gitlab#405
1 parent 7efbc30 commit 3b1d1dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ def http_list(self, path, query_data={}, as_list=None, **kwargs):
743743
if get_all is True:
744744
return list(GitlabList(self, url, query_data, **kwargs))
745745

746-
if 'page' in kwargs or 'per_page' in kwargs or as_list is True:
746+
if 'page' in kwargs or as_list is True:
747747
# pagination requested, we return a list
748748
return list(GitlabList(self, url, query_data, get_next=False,
749749
**kwargs))

0 commit comments

Comments
 (0)