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

rotem at svn.wikimedia.org rotem at svn.wikimedia.org
Fri Jan 4 17:17:16 UTC 2008


Revision: 4795
Author:   rotem
Date:     2008-01-04 17:17:15 +0000 (Fri, 04 Jan 2008)

Log Message:
-----------
Special:Allpages now contains width=33% in the cells; making Page.allpages compatible to both forms.

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

Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py	2008-01-03 20:01:28 UTC (rev 4794)
+++ trunk/pywikipedia/wikipedia.py	2008-01-04 17:17:15 UTC (rev 4795)
@@ -4448,9 +4448,9 @@
                 # Apparently the special code for redirects was added in 1.5
                 R = re.compile('title ?=\"(.*?)\"')
             elif not includeredirects:
-                R = re.compile('\<td\>\<a href=\"\S*\" +title ?="(.*?)"')
+                R = re.compile('\<td(?: width="33%")?\>\<a href=\"\S*\" +title ?="(.*?)"')
             elif includeredirects == 'only':
-                R = re.compile('\<td>\<[^\<\>]*allpagesredirect\"\>\<a href=\"\S*\" +title ?="(.*?)"')
+                R = re.compile('\<td(?: width="33%")?>\<[^\<\>]*allpagesredirect\"\>\<a href=\"\S*\" +title ?="(.*?)"')
             else:
                 R = re.compile('title ?=\"(.*?)\"')
             # Count the number of useful links on this page





More information about the Pywikipedia-l mailing list