Revision: 5276 Author: filnik Date: 2008-04-26 19:06:25 +0000 (Sat, 26 Apr 2008)
Log Message: ----------- Holy cr*p, bugfix, thanks God it's a bug only for italians not for all
Modified Paths: -------------- trunk/pywikipedia/checkimages.py
Modified: trunk/pywikipedia/checkimages.py =================================================================== --- trunk/pywikipedia/checkimages.py 2008-04-26 12:05:51 UTC (rev 5275) +++ trunk/pywikipedia/checkimages.py 2008-04-26 19:06:25 UTC (rev 5276) @@ -926,7 +926,8 @@ wikipedia.output(u'A white template found, skipping the template...') if l != '' and l != ' ': # Check that l is not nothing or a space # Deleting! (replace the template with nothing) - g = g.lower().replace('{{%s' % l, '') + print l + g = re.sub(r'{{(?:template:|)%s' % l.lower(), r'', g.lower()) hiddenTemplateFound = True for a_word in something: # something is the array with {{, MIT License and so on. if a_word in g: