projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75aa998
)
Fix Cursor.items() to use limit parameter.
author
Josh Roesslein
<jroesslein@gmail.com>
Tue, 29 Sep 2009 05:38:49 +0000
(
00:38
-0500)
committer
Josh Roesslein
<jroesslein@gmail.com>
Tue, 29 Sep 2009 05:38:49 +0000
(
00:38
-0500)
tweepy/cursor.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/cursor.py
b/tweepy/cursor.py
index 0678bfc08b7cc9f6888e40e086c0bed295571c84..035ce8999d0f697ccf546dfb263bb3d930a427ab 100644
(file)
--- a/
tweepy/cursor.py
+++ b/
tweepy/cursor.py
@@
-23,7
+23,9
@@
class Cursor(object):
def items(self, limit=0):
"""Return iterator for items in each page"""
- return ItemIterator(self.iterator)
+ i = ItemIterator(self.iterator)
+ i.limit = limit
+ return i
class BaseIterator(object):