http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9726
Revision: 9726 Author: valhallasw Date: 2011-11-05 13:57:45 +0000 (Sat, 05 Nov 2011) Log Message: ----------- critical fix: revert r9725
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2011-11-04 14:50:26 UTC (rev 9725) +++ trunk/pywikipedia/wikipedia.py 2011-11-05 13:57:45 UTC (rev 9726) @@ -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'', u'via API ')[site.has_api() and debug])) + % (len(pages), u'via API ' if site.has_api() and debug else u'', 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