From 4a313c908b17182500ed291716057ca75c882293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gregor=20M=C3=BCllegger?= Date: Fri, 31 Jul 2015 14:31:29 +0200 Subject: [PATCH] Remove unused projects.utils.github_paginate It's broken, not used in the project and superseded by oauth.utils.github_paginate. --- readthedocs/projects/utils.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/readthedocs/projects/utils.py b/readthedocs/projects/utils.py index 4c99c95689a..b7219f697bc 100644 --- a/readthedocs/projects/utils.py +++ b/readthedocs/projects/utils.py @@ -182,21 +182,3 @@ def make_api_project(project_data): project = Project(**project_data) project.save = _new_save return project - - -def github_paginate(client, url): - """ - Scans trough all github paginates results and returns the concatenated - list of results. - - :param client: requests client instance - :param url: start url to get the data from. - - See https://developer.github.com/v3/#pagination - """ - result = [] - while url: - r = session.get(url) - result.extend(r.json()) - url = r.links.get('next') - return result