jayvdb / pywikibot-core (review/mpaa/api-buffering-10)
Build #102 failed.
48 minutes and 23 seconds
Mpaa 826f592 Changeset →
  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 3d2ca97aaac17a28e177fa89fbdd3364e7f53c0c)

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
System message:

We just switched the default image for OS X jobs to our new image including Xcode 6.1. See our blog post for a full list of changes.

Would you like to test your private code?

Travis Pro could be your new best friend!