Revision: 6969 Author: misza13 Date: 2009-06-17 16:02:12 +0000 (Wed, 17 Jun 2009)
Log Message: ----------- Fixed regex for detecting thread headers - trailing spaces are allowed (and ignored by MediaWiki).
Modified Paths: -------------- trunk/pywikipedia/archivebot.py
Modified: trunk/pywikipedia/archivebot.py =================================================================== --- trunk/pywikipedia/archivebot.py 2009-06-17 11:22:20 UTC (rev 6968) +++ trunk/pywikipedia/archivebot.py 2009-06-17 16:02:12 UTC (rev 6969) @@ -335,7 +335,7 @@ state = 0 #Reading header curThread = None for line in lines: - threadHeader = re.search('^== *([^=].*?) *==$',line) + threadHeader = re.search('^== *([^=].*?) *== *$',line) if threadHeader: state = 1 #Reading threads now if curThread:
pywikipedia-svn@lists.wikimedia.org