From 9fc857e480e36c6752fd09b64b7dbeb6084a0eaf Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 28 Jan 2021 14:13:59 -0600 Subject: [PATCH] Remove check for IdIterator.method.__self__ in IdIterator.next --- tweepy/cursor.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tweepy/cursor.py b/tweepy/cursor.py index 523e3f8..2031812 100644 --- a/tweepy/cursor.py +++ b/tweepy/cursor.py @@ -134,10 +134,7 @@ 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__'): - result = self.method.__self__.parser.parse(self.method(create=True), data) - else: - result = model + result = self.method.__self__.parser.parse(self.method(create=True), data) if len(self.results) != 0: self.index += 1 -- 2.25.1