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

filnik at svn.wikimedia.org filnik at svn.wikimedia.org
Sat Oct 11 17:18:38 UTC 2008


Revision: 5958
Author:   filnik
Date:     2008-10-11 17:18:37 +0000 (Sat, 11 Oct 2008)

Log Message:
-----------
Bugfix of the bugfix -_-' 

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

Modified: trunk/pywikipedia/checkimages.py
===================================================================
--- trunk/pywikipedia/checkimages.py	2008-10-11 16:03:06 UTC (rev 5957)
+++ trunk/pywikipedia/checkimages.py	2008-10-11 17:18:37 UTC (rev 5958)
@@ -1412,7 +1412,7 @@
             for l in hiddentemplate:
                 if tagged == False:
                     # why creator? Because on commons there's a template such as {{creator:name}} that.. works
-                    res = re.findall(r'\{\{(?:[Tt]emplate:|)(?:%s(?:[ \n]*?(?:\n|\||\}|<)|creator:)' % l.lower(), g.lower())
+                    res = re.findall(r'\{\{(?:[Tt]emplate:|)(?:%s[ \n]*?(?:\n|\||\}|<)|creator:)' % l.lower(), g.lower())
                     if res != []:
                         white_template_found += 1
                         if l != '' and l != ' ': # Check that l is not nothing or a space





More information about the Pywikipedia-l mailing list