[Pywikipedia-l] SVN: [6576] trunk/pywikipedia/checkimages.py

filnik at svn.wikimedia.org filnik at svn.wikimedia.org
Sun Apr 5 11:19:14 UTC 2009


Revision: 6576
Author:   filnik
Date:     2009-04-05 11:19:14 +0000 (Sun, 05 Apr 2009)

Log Message:
-----------
Bugfix for redirect in images

Modified Paths:
--------------
    trunk/pywikipedia/checkimages.py

Modified: trunk/pywikipedia/checkimages.py
===================================================================
--- trunk/pywikipedia/checkimages.py	2009-04-04 17:39:06 UTC (rev 6575)
+++ trunk/pywikipedia/checkimages.py	2009-04-05 11:19:14 UTC (rev 6576)
@@ -832,7 +832,7 @@
                 on_commons_text = self.image.getImagePageHtml()
                 if u"<div class='sharedUploadNotice'>" in on_commons_text:
                     wikipedia.output(u"But, the file doesn't exist on your project! Skip...")
-                    # Problems? Yes! We have to skip the check part for that image!
+                    # Problems? Yes! We have to skip the check part for that image
                     # Because it's on commons but someone has added something on your project.
                     return False
                 elif re.findall(r'\bstemma\b', self.imageName.lower()) != [] and self.site.lang == 'it':
@@ -1366,7 +1366,7 @@
             wikipedia.output(u"Skipping %s because it has been deleted." % self.imageName)
             return True
         except wikipedia.IsRedirectPage:
-            wikipedia.output(u"The file description for %s is a redirect?!" % self.imageName)
+            wikipedia.output(u"Skipping %s because it's a redirect." % self.imageName)
             return True
         # Delete the fields where the templates cannot be loaded
         regex_nowiki = re.compile(r'<nowiki>(.*?)</nowiki>', re.DOTALL)





More information about the Pywikipedia-l mailing list