Revision: 5124 Author: filnik Date: 2008-03-11 20:08:10 +0000 (Tue, 11 Mar 2008)
Log Message: ----------- Other regex fixed.. omg, today is full of work :-)
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2008-03-11 17:30:49 UTC (rev 5123) +++ trunk/pywikipedia/wikipedia.py 2008-03-11 20:08:10 UTC (rev 5124) @@ -1695,7 +1695,7 @@ if self.site().versionnumber() < 4: editR = re.compile('<li>(.*?)\s+(.*).*?<a href=".*?oldid=([0-9]*)" title=".*?">([^<]*)</a> <span class='user'><a href=".*?" title=".*?">([^<]*?)</a></span>.*?(?:<span class='comment'>(.*?)</span>)?</li>') else: - editR = re.compile('<li>(.*?)\s+(.*).*?<a href=".*?oldid=([0-9]*)" title=".*?">([^<]*)</a> <span class='history-user'><a href=".*?" title=".*?">([^<]*?)</a>.*?</span>.*?(?:<span class=['"]comment['"]>(.*?)</span>)?</li>') + editR = re.compile('<li>(.*?)\s+(.*).*?<a href=".*?oldid=([0-9]*)" title=".*?">([^<]*)</a> (?:<span class='history-user'>|)<a href=".*?" title=".*?">([^<]*?)</a>.*?(?:</span>|).*?(?:<span class=['"]comment['"]>(.*?)</span>)?</li>')
startFromPage = None thisHistoryDone = False