http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9725
Revision: 9725 Author: xqt Date: 2011-11-04 14:50:26 +0000 (Fri, 04 Nov 2011) Log Message: ----------- python 2.4 compatible (bug #3419295)
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2011-11-03 07:13:50 UTC (rev 9724) +++ trunk/pywikipedia/wikipedia.py 2011-11-04 14:50:26 UTC (rev 9725) @@ -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])) 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