From: Harmon Date: Thu, 28 Jan 2021 20:13:59 +0000 (-0600) Subject: Remove check for IdIterator.method.__self__ in IdIterator.next X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9fc857e480e36c6752fd09b64b7dbeb6084a0eaf;p=tweepy.git Remove check for IdIterator.method.__self__ in IdIterator.next --- 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