[Pywikipedia-l] SVN: [6060] trunk/pywikipedia/checkimages.py
filnik at svn.wikimedia.org
filnik at svn.wikimedia.org
Wed Nov 5 13:17:31 UTC 2008
Revision: 6060
Author: filnik
Date: 2008-11-05 13:17:31 +0000 (Wed, 05 Nov 2008)
Log Message:
-----------
Little bugfix for the report
Modified Paths:
--------------
trunk/pywikipedia/checkimages.py
Modified: trunk/pywikipedia/checkimages.py
===================================================================
--- trunk/pywikipedia/checkimages.py 2008-11-05 03:41:24 UTC (rev 6059)
+++ trunk/pywikipedia/checkimages.py 2008-11-05 13:17:31 UTC (rev 6060)
@@ -843,7 +843,7 @@
""" Checking if the image is on commons """
wikipedia.output(u'Checking if %s is on commons...' % self.imageName)
commons_site = wikipedia.getSite('commons', 'commons')
- regexOnCommons = r"\n\*\[\[:Image:%s\]\] is also on '''Commons''': \[\[commons:Image:.*?\]\](?: \(same name\)|)$" % self.imageName
+ regexOnCommons = r"\n\*\[\[:Image:%s\]\] is also on '''Commons''': \[\[commons:Image:.*?\]\](?: \(same name\)|)$" % re.escape(self.imageName)
imagePage = wikipedia.ImagePage(self.site, u'Image:%s' % self.imageName)
hash_found = imagePage.getHash()
if hash_found == None:
More information about the Pywikipedia-l
mailing list