http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11239
Revision: 11239 Author: amir Date: 2013-03-23 06:22:29 +0000 (Sat, 23 Mar 2013) Log Message: ----------- continue of bug fix
Modified Paths: -------------- trunk/pywikipedia/featured.py
Modified: trunk/pywikipedia/featured.py =================================================================== --- trunk/pywikipedia/featured.py 2013-03-23 05:31:06 UTC (rev 11238) +++ trunk/pywikipedia/featured.py 2013-03-23 06:22:29 UTC (rev 11239) @@ -443,8 +443,6 @@ re_Link_FA=re.compile(ur"{{%s|%s}}" % (findtemplate.replace(u' ', u'[ _]'), fromsite.lang), re.IGNORECASE) - re_this_iw=re.compile(ur"[[%s:[^]]+]]" % fromsite.lang) - gen = featuredArticles(fromsite, pType) gen = PreloadingGenerator(gen)
@@ -478,11 +476,6 @@ u'Connecting %s -> %s. Proceed? [Y/N]' % (a.title(), atrans.title())) in ['Y', 'y'] ): - m=re_this_iw.search(text) - if not m: - pywikibot.output( - u"no interwiki record, very strange") - continue site = pywikibot.getSite() comment = pywikibot.setAction( i18n.twtranslate(site, 'featured-' + pType,
pywikipedia-svn@lists.wikimedia.org