Revision: 8382 Author: multichill Date: 2010-08-07 10:29:15 +0000 (Sat, 07 Aug 2010)
Log Message: ----------- Fix regex
Modified Paths: -------------- trunk/pywikipedia/imagecopy_enwp.py
Modified: trunk/pywikipedia/imagecopy_enwp.py =================================================================== --- trunk/pywikipedia/imagecopy_enwp.py 2010-08-06 20:01:59 UTC (rev 8381) +++ trunk/pywikipedia/imagecopy_enwp.py 2010-08-07 10:29:15 UTC (rev 8382) @@ -380,9 +380,9 @@ ]
for (regex, replacement) in conversions: - text = re.sub(regex, replacement, text) + text = re.sub(regex, replacement % {u'lang' : lang, u'family' : family}, text)
- return text % {u'lang' : lang, u'family' : family} + return text
def getNewLicensetemplate(imagepage): '''
pywikipedia-svn@lists.wikimedia.org