http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11743
Revision: 11743 Author: xqt Date: 2013-07-10 13:19:47 +0000 (Wed, 10 Jul 2013) Log Message: ----------- strip trailing whitespaces
Modified Paths: -------------- branches/rewrite/scripts/featured.py
Modified: branches/rewrite/scripts/featured.py =================================================================== --- branches/rewrite/scripts/featured.py 2013-07-10 13:19:19 UTC (rev 11742) +++ branches/rewrite/scripts/featured.py 2013-07-10 13:19:47 UTC (rev 11743) @@ -23,7 +23,7 @@
-nocache doesn't include cache files file to remember if the article already was verified. - + -nocache:xx,yy you may ignore language codes xx,yy,... from cache file
-fromlang:xx,yy xx,yy,zz,.. are the languages to be verified. @@ -340,7 +340,7 @@ except KeyboardInterrupt: pywikibot.output('\nQuitting featured treat...') break - self.writecache() + self.writecache()
def treat(self, code, process): fromsite = pywikibot.Site(code) @@ -589,7 +589,7 @@ atrans = self.findTranslated(a, tosite, quiet) if not atrans: continue - + if task != 'former': text = atrans.get() m = re_Link_FA.search(text) @@ -605,7 +605,7 @@ comment = pywikibot.setAction( i18n.twtranslate(site, 'featured-' + task, {'page': unicode(a)})) - + # Moving {{Link FA|xx}} to top of interwikis if template_on_top: # Getting the interwiki
pywikipedia-svn@lists.wikimedia.org