http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9965
Revision: 9965 Author: xqt Date: 2012-03-04 11:44:29 +0000 (Sun, 04 Mar 2012) Log Message: ----------- sr and zh are still 1.18
Modified Paths: -------------- trunk/pywikipedia/families/wikipedia_family.py
Modified: trunk/pywikipedia/families/wikipedia_family.py =================================================================== --- trunk/pywikipedia/families/wikipedia_family.py 2012-03-04 10:09:53 UTC (rev 9964) +++ trunk/pywikipedia/families/wikipedia_family.py 2012-03-04 11:44:29 UTC (rev 9965) @@ -1478,6 +1478,12 @@ # xxwikipedia for Wikipedias. return '%swiki_p' % code
+ def version(self, code): + """Return MediaWiki version number as a string.""" + # Don't use this, use versionnumber() instead. This only exists + # to not break family files. + return code in ['sr', 'zh'] and '1.18wmf1' or '1.19wmf1' + def code2encodings(self, code): """Return a list of historical encodings for a specific language wikipedia"""