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

wikipedian at svn.wikimedia.org wikipedian at svn.wikimedia.org
Thu Jan 10 15:19:08 UTC 2008


Revision: 4848
Author:   wikipedian
Date:     2008-01-10 15:19:08 +0000 (Thu, 10 Jan 2008)

Log Message:
-----------
replaceExcept(): added regex for timelines

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

Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py	2008-01-10 14:15:00 UTC (rev 4847)
+++ trunk/pywikipedia/wikipedia.py	2008-01-10 15:19:08 UTC (rev 4848)
@@ -2810,6 +2810,7 @@
         'source':      re.compile(r'(?is)<source .*?</source>'),
         # inline references
         'ref':         re.compile(r'(?ism)<ref[ >].*?</ref>'),
+        'timeline':    re.compile(r'(?is)<timeline>.*?</timeline>'),
         # lines that start with a space are shown in a monospace font and
         # have whitespace preserved.
         'startspace':  re.compile(r'(?m)^ (.*?)$'),





More information about the Pywikipedia-l mailing list