From 3b1d1dd8b9fc80a10cf52641701f7e1e6a8277f1 Mon Sep 17 00:00:00 2001 From: Eric L Frederich Date: Tue, 26 Dec 2017 13:33:55 -0500 Subject: [PATCH] Allow per_page to be used with generators. Fixes #405 --- gitlab/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab/__init__.py b/gitlab/__init__.py index aac483728..e7b09a47f 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -743,7 +743,7 @@ def http_list(self, path, query_data={}, as_list=None, **kwargs): if get_all is True: return list(GitlabList(self, url, query_data, **kwargs)) - if 'page' in kwargs or 'per_page' in kwargs or as_list is True: + if 'page' in kwargs or as_list is True: # pagination requested, we return a list return list(GitlabList(self, url, query_data, get_next=False, **kwargs))