http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10405
Revision: 10405 Author: xqt Date: 2012-06-21 22:30:10 +0000 (Thu, 21 Jun 2012) Log Message: ----------- fixes infinite loop while self.data exists and now new request is done
Modified Paths: -------------- branches/rewrite/pywikibot/data/api.py
Modified: branches/rewrite/pywikibot/data/api.py =================================================================== --- branches/rewrite/pywikibot/data/api.py 2012-06-21 18:19:05 UTC (rev 10404) +++ branches/rewrite/pywikibot/data/api.py 2012-06-21 22:30:10 UTC (rev 10405) @@ -685,6 +685,7 @@ if isinstance(value, int): value = str(value) self.request[key] = value + del self.data # a new request with query-continue is needed
def result(self, data): """Process result data as needed for particular subclass."""