Fix Cursor.items() to use limit parameter.
authorJosh Roesslein <jroesslein@gmail.com>
Tue, 29 Sep 2009 05:38:49 +0000 (00:38 -0500)
committerJosh Roesslein <jroesslein@gmail.com>
Tue, 29 Sep 2009 05:38:49 +0000 (00:38 -0500)
tweepy/cursor.py

index 0678bfc08b7cc9f6888e40e086c0bed295571c84..035ce8999d0f697ccf546dfb263bb3d930a427ab 100644 (file)
@@ -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):