[Pywikipedia-l] SVN: [4685] trunk/pywikipedia/wikipedia.py

cosoleto at svn.wikimedia.org cosoleto at svn.wikimedia.org
Mon Dec 10 07:39:19 UTC 2007


Revision: 4685
Author:   cosoleto
Date:     2007-12-10 07:39:14 +0000 (Mon, 10 Dec 2007)

Log Message:
-----------
fix

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

Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py	2007-12-10 07:27:15 UTC (rev 4684)
+++ trunk/pywikipedia/wikipedia.py	2007-12-10 07:39:14 UTC (rev 4685)
@@ -4218,7 +4218,7 @@
         """Yield ImagePages from Special:Log&type=upload"""
 
         seen = set()
-        regexp = re.compile('<li[^>]*>(?P<date>.+?)\s+<a href=.*?>(?P<user>.+?)</a>\s+\(.+?</a>\).*?<a href=".*?"(?P<new> class="new")? title="(?P<image>.+?)"\s*>(?:.*?<span class="comment">(?P<comment>.*?)</span>)?')
+        regexp = re.compile('<li[^>]*>(?P<date>.+?)\s+<a href=.*?>(?P<user>.+?)</a>\s+\(.+?</a>\).*?<a href=".*?"(?P<new> class="new")? title="(?P<image>.+?)"\s*>(?:.*?<span class="comment">(?P<comment>.*?)</span>)?', re.UNICODE)
 
         while True:
             path = self.log_address(number, mode = 'upload')





More information about the Pywikipedia-l mailing list