Revision: 6005 Author: russblau Date: 2008-10-20 16:39:05 +0000 (Mon, 20 Oct 2008)
Log Message: ----------- query-continue could sometimes return an int instead of a str
Modified Paths: -------------- branches/rewrite/pywikibot/data/api.py
Modified: branches/rewrite/pywikibot/data/api.py =================================================================== --- branches/rewrite/pywikibot/data/api.py 2008-10-20 14:02:43 UTC (rev 6004) +++ branches/rewrite/pywikibot/data/api.py 2008-10-20 16:39:05 UTC (rev 6005) @@ -396,7 +396,9 @@ if not self.module in self.data["query-continue"]: raise Error("Missing '%s' key in ['query-continue'] value." % self.module) - self.request.update(self.data["query-continue"][self.module]) + update = self.data["query-continue"][self.module] + for key in update: + self.request[key] = str(update[key])
def result(self, data): """Process result data as needed for particular subclass."""