Fix cursor invocation, passing args to underlying method
authorYuri Prezument <y@yprez.com>
Mon, 1 Dec 2014 11:06:24 +0000 (13:06 +0200)
committerYuri Prezument <y@yprez.com>
Mon, 1 Dec 2014 14:15:03 +0000 (16:15 +0200)
tweepy/cursor.py

index 902fc22970b3b52a0feddee7ae80e371002bfeba..1d63f4979deb67137bc6e1dc3e2b8ef667e468fa 100644 (file)
@@ -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