Revision: 4189
Author: misza13
Date: 2007-09-03 17:10:53 +0000 (Mon, 03 Sep 2007)
Log Message:
-----------
Fixed configuration updating regex.
Modified Paths:
--------------
trunk/pywikipedia/archivebot.py
Modified: trunk/pywikipedia/archivebot.py
===================================================================
--- trunk/pywikipedia/archivebot.py 2007-09-03 14:28:40 UTC (rev 4188)
+++ trunk/pywikipedia/archivebot.py 2007-09-03 17:10:53 UTC (rev 4189)
@@ -386,7 +386,7 @@
self.archives[a].update(comment)
#Save the page itself
- self.Page.header =
re.sub('{{'+self.tpl+'\n[^}]*\n}}',self.attr2text(),self.Page.header)
+ self.Page.header =
re.sub('{{'+self.tpl+'\n.*?\n}}',self.attr2text(),self.Page.header,re.DOTALL)
self.commentParams['count'] = self.archivedThreads
self.commentParams['archives'] = ',
'.join(['[['+a.title+']]' for a in self.archives.values()])
if not self.commentParams['archives']:
Show replies by date