Return cursors when calling method from DMCursorIterator
authorHarmon <Harmon758@gmail.com>
Sun, 25 Aug 2019 09:32:04 +0000 (04:32 -0500)
committerHarmon <Harmon758@gmail.com>
Sun, 25 Aug 2019 09:32:04 +0000 (04:32 -0500)
commit3c4512993cc5c57fa444d17e5603b0177aeee3ef
tree35086a51f4cbf1659a0cf7e91db38d85bf6d0337
parent24e5ac989d4b5143432cceaa76284a12060da59c
Return cursors when calling method from DMCursorIterator

This adds a return_cursors kwarg and attribute to APIMethod that can be used to explicitly specify to return cursors with the result.
The existing check for the cursor session parameter has been refactored from JSONParser.parse to APIMethod.execute.
This means that the parser's parse method is called with a return_cursors kwarg.
All parsers in the library have been updated to reflect this change.
tweepy/binder.py
tweepy/cursor.py
tweepy/parsers.py