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

filnik at svn.wikimedia.org filnik at svn.wikimedia.org
Wed Oct 15 12:17:23 UTC 2008


Revision: 5975
Author:   filnik
Date:     2008-10-15 12:17:22 +0000 (Wed, 15 Oct 2008)

Log Message:
-----------
Little bugfix in the load-regex

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

Modified: trunk/pywikipedia/checkimages.py
===================================================================
--- trunk/pywikipedia/checkimages.py	2008-10-15 08:14:30 UTC (rev 5974)
+++ trunk/pywikipedia/checkimages.py	2008-10-15 12:17:22 UTC (rev 5975)
@@ -1105,7 +1105,7 @@
         load_2 = True
         # I search with a regex how many user have not the talk page
         # and i put them in a list (i find it more easy and secure)
-        regl = r"(\"|\')(.*?)\1(?:,\s+?|\])"
+        regl = r"(\"|\')(.*?)\1(?:,|\])"
         pl = re.compile(regl, re.UNICODE)
         for xl in pl.finditer(raw):
             word = xl.group(2).replace('\\\\', '\\')





More information about the Pywikipedia-l mailing list