From: Yuri Prezument Date: Wed, 19 Nov 2014 10:55:32 +0000 (+0200) Subject: Fix CursorIterator.next() for Python 3 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c5c127edbe13175e8515becbc0d2955b8def1950;p=tweepy.git Fix CursorIterator.next() for Python 3 It was calling next, but returning None --- diff --git a/tweepy/cursor.py b/tweepy/cursor.py index 274a430..902fc22 100644 --- a/tweepy/cursor.py +++ b/tweepy/cursor.py @@ -46,7 +46,7 @@ class BaseIterator(object): self.limit = 0 def __next__(self): - self.next() + return self.next() def next(self): raise NotImplementedError