diff options
author | 2011-11-12 13:13:28 +0100 | |
---|---|---|
committer | 2011-11-12 13:13:28 +0100 | |
commit | b2890225a70d26067f997f8b5a6345eaecfac84b (patch) | |
tree | 87f00c63750bf434ad875f5219b1111755923f65 /github3/handlers/base.py | |
parent | Catch unauthorized requests. Bad credentials (diff) | |
download | python-github3-b2890225a70d26067f997f8b5a6345eaecfac84b.tar.xz python-github3-b2890225a70d26067f997f8b5a6345eaecfac84b.zip |
Added converters test
Diffstat (limited to 'github3/handlers/base.py')
-rw-r--r-- | github3/handlers/base.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/github3/handlers/base.py b/github3/handlers/base.py index 50e2df8..d0af418 100644 --- a/github3/handlers/base.py +++ b/github3/handlers/base.py @@ -53,9 +53,8 @@ class Handler(object): """ Hander request to multiple resources """ resource = self._prefix_resource(resource) - page_resources = Paginate(resource, self._gh.get, **kwargs) counter = 1 - for page in page_resources: + for page in Paginate(resource, self._gh.get, **kwargs): for raw_resource in page: if limit and counter > limit: break counter += 1 |