[Pywikipedia-l] SVN: [6093] branches/rewrite/pywikibot/data/api.py
russblau at svn.wikimedia.org
russblau at svn.wikimedia.org
Wed Nov 12 20:32:26 UTC 2008
Revision: 6093
Author: russblau
Date: 2008-11-12 20:32:26 +0000 (Wed, 12 Nov 2008)
Log Message:
-----------
one more generator bug
Modified Paths:
--------------
branches/rewrite/pywikibot/data/api.py
Modified: branches/rewrite/pywikibot/data/api.py
===================================================================
--- branches/rewrite/pywikibot/data/api.py 2008-11-12 19:21:49 UTC (rev 6092)
+++ branches/rewrite/pywikibot/data/api.py 2008-11-12 20:32:26 UTC (rev 6093)
@@ -317,10 +317,10 @@
self.request = Request(**kwargs)
self.limit = None
if "generator" in kwargs:
- self.resultkey = "pages" # name of the "query"
- else: # subelement key
- self.resultkey = self.module # to look for when iterating
- self.continuekey = self.resultkey # usually the query-continue key
+ self.resultkey = "pages" # name of the "query" subelement key
+ else: # to look for when iterating
+ self.resultkey = self.module
+ self.continuekey = self.module # usually the query-continue key
# is the same as the querymodule,
# but not always
More information about the Pywikipedia-l
mailing list