diff options
author | 2011-12-03 20:07:07 +0100 | |
---|---|---|
committer | 2011-12-03 20:07:07 +0100 | |
commit | c1dad1ab5856e7e559cc2b2eaa7c8acb231981d1 (patch) | |
tree | f760a889eada0fe0d8cf8cadd8c19fa42c9b783b /github3/core.py | |
parent | Fix bugs (diff) | |
parent | Complete AuthGist handler (diff) | |
download | python-github3-c1dad1ab5856e7e559cc2b2eaa7c8acb231981d1.tar.xz python-github3-c1dad1ab5856e7e559cc2b2eaa7c8acb231981d1.zip |
Merge branch 'develop'
Diffstat (limited to 'github3/core.py')
-rw-r--r-- | github3/core.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/github3/core.py b/github3/core.py index d7237af..ab71943 100644 --- a/github3/core.py +++ b/github3/core.py @@ -1,7 +1,6 @@ #!/usr/bin/env python # -*- encoding: utf-8 -*- -# -# author: David Medina + class Paginate: """ Paginate resource iterator @@ -29,12 +28,14 @@ class Paginate: return self.last - # TODO: reset iterators... multiple? def __iter__(self): return self def initial(self): - """ First request. Force requester to paginate returning link header """ + """ + First request + Force requester to paginate returning link header + """ link, content = self.requester(self.resource, paginate=True, page=1, **self.kwargs) self.last = self._last_page(link) if link else 1 @@ -54,6 +55,7 @@ class Paginate: self.page += 1 return content + class Converter(object): """ Abstract converter class """ |