http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11026
Revision: 11026 Author: drtrigon Date: 2013-02-02 13:08:58 +0000 (Sat, 02 Feb 2013) Log Message: ----------- bug fix; version page format changed once again
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2013-02-02 12:34:53 UTC (rev 11025) +++ trunk/pywikipedia/wikipedia.py 2013-02-02 13:08:58 UTC (rev 11026) @@ -8195,7 +8195,10 @@ # 2nd try is for mw >=1.17wmf1 versionlist.append(lambda: htmldata.body.table.findAll( 'td')[1].contents[0] ) - # 3rd uses family file which is not live + # 3rd try is for mw >=1.21 + versionlist.append(lambda: htmldata.body.table.findAll( + 'td')[1].contents[0].contents[0] ) + # 4th uses family file which is not live versionlist.append(lambda: self.family.version(self.lang) ) for versionfunc in versionlist: try: