diff options
| author | Eric L Frederich <eric.frederich@siemens.com> | 2017-12-26 13:33:55 -0500 |
|---|---|---|
| committer | Eric L Frederich <eric.frederich@siemens.com> | 2017-12-26 13:33:55 -0500 |
| commit | 3b1d1dd8b9fc80a10cf52641701f7e1e6a8277f1 (patch) | |
| tree | 41366abece0222cd4045dd5c12c43ec0aff018cf /gitlab | |
| parent | 7efbc30b9d8cf8ea856b68ab85b9cd2340121358 (diff) | |
| download | gitlab-3b1d1dd8b9fc80a10cf52641701f7e1e6a8277f1.tar.gz | |
Allow per_page to be used with generators.
Fixes #405
Diffstat (limited to 'gitlab')
| -rw-r--r-- | gitlab/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py index aac4837..e7b09a4 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -743,7 +743,7 @@ class Gitlab(object): 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)) |
