From 5bb70cb8d9fc1607db12733eafd1672e980f92a3 Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Tue, 29 Sep 2009 00:38:49 -0500 Subject: [PATCH] Fix Cursor.items() to use limit parameter. --- tweepy/cursor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tweepy/cursor.py b/tweepy/cursor.py index 0678bfc..035ce89 100644 --- 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): -- 2.25.1