Revision: 6233 Author: filnik Date: 2009-01-09 14:47:10 +0000 (Fri, 09 Jan 2009)
Log Message: ----------- Minifix
Modified Paths: -------------- trunk/pywikipedia/checkimages.py
Modified: trunk/pywikipedia/checkimages.py =================================================================== --- trunk/pywikipedia/checkimages.py 2009-01-08 16:56:38 UTC (rev 6232) +++ trunk/pywikipedia/checkimages.py 2009-01-09 14:47:10 UTC (rev 6233) @@ -896,7 +896,7 @@ dupTalkText = wikipedia.translate(self.site, duplicates_user_talk_text) dupComment_talk = wikipedia.translate(self.site, duplicates_comment_talk) dupComment_image = wikipedia.translate(self.site, duplicates_comment_image) - duplicateRegex = r'\n*(?:[[:File:%s]] has the following duplicates(?: ('''forced mode''')|):|*[[:File:%s]])$' % (self.convert_to_url(self.imageName), self.convert_to_url(self.imageName)) + duplicateRegex = r'\n*(?:[[:File:%s]] has the following duplicates(?: ('''forced mode''')|):|*[[:File:%s]])$' % (re.escape(self.convert_to_url(self.imageName)), re.escape(self.convert_to_url(self.imageName))) imagePage = wikipedia.ImagePage(self.site, u'File:%s' % self.imageName) hash_found = imagePage.getHash() duplicates = self.site.getFilesFromAnHash(hash_found)
pywikipedia-l@lists.wikimedia.org