Fix CursorIterator.next() for Python 3
authorYuri Prezument <y@yprez.com>
Wed, 19 Nov 2014 10:55:32 +0000 (12:55 +0200)
committerYuri Prezument <y@yprez.com>
Wed, 19 Nov 2014 10:55:32 +0000 (12:55 +0200)
It was calling next, but returning None

tweepy/cursor.py

index 274a4309593c55a63f12c038f71096ba5250f228..902fc22970b3b52a0feddee7ae80e371002bfeba 100644 (file)
@@ -46,7 +46,7 @@ class BaseIterator(object):
         self.limit = 0
 
     def __next__(self):
-        self.next()
+        return self.next()
 
     def next(self):
         raise NotImplementedError