From f49a97d37deca244b6ef63575a696c269aac93bd Mon Sep 17 00:00:00 2001 From: Yuri Prezument Date: Mon, 1 Dec 2014 13:06:24 +0200 Subject: [PATCH] Fix cursor invocation, passing args to underlying method --- tweepy/cursor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tweepy/cursor.py b/tweepy/cursor.py index 902fc22..1d63f49 100644 --- a/tweepy/cursor.py +++ b/tweepy/cursor.py @@ -115,12 +115,11 @@ class IdIterator(BaseIterator): # This is a special invocation that returns the underlying # APIMethod class model = ModelParser().parse(self.method(create=True), data) - if hasattr(self.method, '__self__'): self.method.__self__.parser = old_parser result = self.method.__self__.parser.parse(self.method(create=True), data) else: - result = self.method() + result = model if len(self.results) != 0: self.index += 1 -- 2.25.1