Revision: 6507 Author: filnik Date: 2009-03-13 16:00:28 +0000 (Fri, 13 Mar 2009)
Log Message: ----------- Bugfix -.- lower() seems not working in THAT position -.-
Modified Paths: -------------- trunk/pywikipedia/checkimages.py
Modified: trunk/pywikipedia/checkimages.py =================================================================== --- trunk/pywikipedia/checkimages.py 2009-03-11 17:54:39 UTC (rev 6506) +++ trunk/pywikipedia/checkimages.py 2009-03-13 16:00:28 UTC (rev 6507) @@ -1114,7 +1114,7 @@ for template_selected in templatesInTheImageRaw: for templateReal in self.licenses_found: if self.convert_to_url(template_selected).lower().replace('template:', '') == \ - self.convert_to_url(templateReal.title().lower().replace('template:', '')): + self.convert_to_url(templateReal.title().replace('template:', '')).lower(): if templateReal not in self.allLicenses: # don't put the same template, twice. self.allLicenses.append(templateReal) if self.licenses_found != []:
pywikipedia-l@lists.wikimedia.org