http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11157
Revision: 11157 Author: xqt Date: 2013-03-02 13:46:19 +0000 (Sat, 02 Mar 2013) Log Message: ----------- some PEP8 changes
Modified Paths: -------------- branches/rewrite/scripts/basic.py
Modified: branches/rewrite/scripts/basic.py =================================================================== --- branches/rewrite/scripts/basic.py 2013-03-02 12:57:54 UTC (rev 11156) +++ branches/rewrite/scripts/basic.py 2013-03-02 13:46:19 UTC (rev 11157) @@ -33,6 +33,7 @@ '¶ms;': pagegenerators.parameterHelp }
+ class BasicBot: # Edit summary message that should be used is placed on /i18n subdirectory. # The file containing these messages should have the same name as the caller @@ -103,7 +104,7 @@ % page.title()) # show what was changed pywikibot.showDiff(page.get(), text) - pywikibot.output(u'Comment: %s' %comment) + pywikibot.output(u'Comment: %s' % comment) if not self.dry: choice = pywikibot.inputChoice( u'Do you want to accept these changes?',