Revision: 4145 Author: btongminh Date: 2007-08-30 10:30:43 +0000 (Thu, 30 Aug 2007)
Log Message: ----------- Fix unbound variable.
Modified Paths: -------------- trunk/pywikipedia/image_replacer.py
Modified: trunk/pywikipedia/image_replacer.py =================================================================== --- trunk/pywikipedia/image_replacer.py 2007-08-30 10:15:53 UTC (rev 4144) +++ trunk/pywikipedia/image_replacer.py 2007-08-30 10:30:43 UTC (rev 4145) @@ -204,11 +204,11 @@ site = wikipedia.getSite(family(wiki)) if unicode(site) == unicode(self.site): if (namespace, page_title) != (6, old_image): - title = u'[[:%s:%s]]' % (site.namespace(namespace), page_title) + not_ok_items.append(u'[[:%s:%s]]' % \ + (site.namespace(namespace), page_title)) else: - title = u'[[:%s:%s:%s]]' % (site_prefix(site), - site.namespace(namespace), page_title) - not_ok_items.append(title) + not_ok_items.append(u'[[:%s:%s:%s]]' % (site_prefix(site), + site.namespace(namespace), page_title)) template = u'{{%s|new_image=%s|user=%s|comment=%s|not_ok=%s}}' % \ (self.config['replacer_report_template'],