http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10475
Revision: 10475 Author: xqt Date: 2012-08-09 16:51:37 +0000 (Thu, 09 Aug 2012) Log Message: ----------- Follow-up for r10463 (smarter code for query-continue param handling)
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2012-08-09 14:05:04 UTC (rev 10474) +++ trunk/pywikipedia/wikipedia.py 2012-08-09 16:51:37 UTC (rev 10475) @@ -3584,12 +3584,9 @@ self._deletedRevs[parsetime2stamp(y['timestamp'])] = [y['timestamp'], y['user'], y['comment'] , y['*'], False]
if 'query-continue' in data: - # get the continue key for backward compatibility - # with pre 1.20wmf8 - contKey = data['query-continue']['deletedrevs'].keys()[0] - if data['query-continue']['deletedrevs'][contKey].split( + if data['query-continue']['deletedrevs'].values()[0].split( '|')[1] == self.title(withNamespace=False): - params[contKey] = data['query-continue']['deletedrevs'][contKey] + params.update(data['query-continue']['deletedrevs']) else: break else: break @@ -7120,9 +7117,7 @@ if count >= config.special_page_limit: break if 'query-continue' in data and count < params['aplimit']: - # get the continue key for backward compatibility with pre 1.20wmf8 - contKey = data['query-continue']['allpages'].keys()[0] - params[contKey] = data['query-continue']['allpages'][contKey] + params.update(data['query-continue']['allpages']) else: break
pywikipedia-svn@lists.wikimedia.org