[Pywikipedia-l] SVN: [4800] trunk/pywikipedia/featured.py
rotem at svn.wikimedia.org
rotem at svn.wikimedia.org
Sat Jan 5 08:18:49 UTC 2008
Revision: 4800
Author: rotem
Date: 2008-01-05 08:18:48 +0000 (Sat, 05 Jan 2008)
Log Message:
-----------
(bug 1861698) Featured.py cannot detect FA mark template with underline
Modified Paths:
--------------
trunk/pywikipedia/featured.py
Modified: trunk/pywikipedia/featured.py
===================================================================
--- trunk/pywikipedia/featured.py 2008-01-04 18:23:39 UTC (rev 4799)
+++ trunk/pywikipedia/featured.py 2008-01-05 08:18:48 UTC (rev 4800)
@@ -260,7 +260,7 @@
cc={}
findtemplate = wikipedia.translate(wikipedia.getSite(), template)
- re_Link_FA=re.compile(ur"\{\{%s\|%s\}\}" % (findtemplate, fromsite.lang), re.IGNORECASE)
+ 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)
arts=featuredArticles(fromsite)
More information about the Pywikipedia-l
mailing list