mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 03:11:09 +00:00
Do all paginated calls inside PaginatedList
This was already the case for Legacy.PaginatedList. Doing it in PaginatedList.PaginatedList reduces the amount of repeated code and will allow a generic solution for issue #77
This commit is contained in:
+2
-3
@@ -69,12 +69,11 @@ class Github( object ):
|
||||
return Gist.Gist( self.__requester, data, completed = True )
|
||||
|
||||
def get_gists( self ):
|
||||
headers, data = self.__requester.requestAndCheck( "GET", "/gists/public", None, None )
|
||||
return PaginatedList.PaginatedList(
|
||||
Gist.Gist,
|
||||
self.__requester,
|
||||
headers,
|
||||
data
|
||||
"/gists/public",
|
||||
None
|
||||
)
|
||||
|
||||
def legacy_search_repos( self, keyword, language = GithubObject.NotSet ):
|
||||
|
||||
Reference in New Issue
Block a user