forked from wikimedia/pywikibot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api.py: buffer data in QueryGenerator
QueryGenerator yields all items in resultdata, but there is no guarantee that all data for an item arrived in one response. Some data will appear in the following response, etc. (see commit 3d2ca97) This patch buffers results until all data are for an item are fetched. This is based on the fact that the API, when query-continuing, keeps on repeating the same pages until all requested data are fetched. Change-Id: Iccb3a96b0248fdab0650edfda23d05ecec0dadbd
- Loading branch information
Showing
3 changed files
with
140 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters