Commits

sakito committed 8fedae9 Merge

flow: Merged <feature> 't19' to <develop> ('develop').

  • Participants
  • Parent commits da0adc4, 8cb0970
  • Branches develop

Comments (0)

Files changed (2)

tests/test_cursor.py

                             q='twitter', max_id='271859163712348161').pages(1))
         for _ in pages:
             pass
+        pages = list(Cursor(self.api.search_tweets,
+                            q='twitter', max_id=None, since_id=None).pages(1))
+        for _ in pages:
+            pass
 
     def test_cursor_cursor_items(self):
         items = list(Cursor(self.api.friends_ids).items())

tweepy2/cursor.py

     def __init__(self, method, args, kargs):
         BaseIterator.__init__(self, method, args, kargs)
         self.current_page = 0
-        self.max_id = long(kargs.pop('max_id', 0))
-        self.since_id = long(kargs.pop('since_id', 0))
+        self.max_id = long(kargs.pop('max_id', 0) or 0)
+        self.since_id = long(kargs.pop('since_id', 0) or 0)
 
     def next(self):
         self.current_page += 1