http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10234
Revision: 10234 Author: xqt Date: 2012-05-24 06:57:45 +0000 (Thu, 24 May 2012) Log Message: ----------- use unicode
Modified Paths: -------------- branches/rewrite/pywikibot/page.py
Modified: branches/rewrite/pywikibot/page.py =================================================================== --- branches/rewrite/pywikibot/page.py 2012-05-22 21:21:30 UTC (rev 10233) +++ branches/rewrite/pywikibot/page.py 2012-05-24 06:57:45 UTC (rev 10234) @@ -1539,7 +1539,7 @@ #TODO: if getFileVersionHistory changes, make sure this follows it for (datetime, username, resolution, size, comment) \ in self.getFileVersionHistory(): - lines.append('| %s || %s || %s || %s || <nowiki>%s</nowiki>' \ + lines.append(u'| %s || %s || %s || %s || <nowiki>%s</nowiki>' % (datetime, username, resolution, size, comment)) return u'{| border="1"\n! date/time || username || resolution || size || edit summary\n|----\n' + u'\n|----\n'.join(lines) + '\n|}'
pywikipedia-svn@lists.wikimedia.org