http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9727
Revision: 9727 Author: xqt Date: 2011-11-07 04:35:05 +0000 (Mon, 07 Nov 2011) Log Message: ----------- python 2.4 compatible (bug #3419295), follow up for r9725, r9726
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2011-11-05 13:57:45 UTC (rev 9726) +++ trunk/pywikipedia/wikipedia.py 2011-11-07 04:35:05 UTC (rev 9727) @@ -4437,7 +4437,7 @@ # TODO: why isn't this a Site method? pages = list(pages) # if pages is an iterator, we need to make it a list output(u'Getting %d pages %sfrom %s...' - % (len(pages), u'via API ' if site.has_api() and debug else u'', site)) + % (len(pages), (u'', u'via API ')[site.has_api() and debug], site)) limit = config.special_page_limit / 4 # default is 500/4, but It might have good point for server. if len(pages) > limit: # separate export pages for bulk-retrieve
pywikipedia-svn@lists.wikimedia.org