Revision: 4143 Author: btongminh Date: 2007-08-30 10:05:12 +0000 (Thu, 30 Aug 2007)
Log Message: ----------- Don't delink from the image itself.
Modified Paths: -------------- trunk/pywikipedia/delinker.py
Modified: trunk/pywikipedia/delinker.py =================================================================== --- trunk/pywikipedia/delinker.py 2007-08-30 07:58:34 UTC (rev 4142) +++ trunk/pywikipedia/delinker.py 2007-08-30 10:05:12 UTC (rev 4143) @@ -91,6 +91,11 @@ summary = self.get_summary(site, image, admin, reason, replacement) for page_namespace, page_title, title in pages: + if (site.lang, site.family.name) == (self.CommmonsDelinker.site.lang, + self.CommmonsDelinker.site.family.name) and \ + (page_namespace, page_title) == (6, image): + continue + if self.CommonsDelinker.set_edit(str(site), title): # The page is currently being editted. Postpone. if (lang, family) not in skipped_images: