http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9966
Revision: 9966 Author: xqt Date: 2012-03-04 11:45:34 +0000 (Sun, 04 Mar 2012) Log Message: ----------- sr and zh are still 1.18; update from trunk r9965
Modified Paths: -------------- branches/rewrite/pywikibot/families/wikipedia_family.py
Modified: branches/rewrite/pywikibot/families/wikipedia_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikipedia_family.py 2012-03-04 11:44:29 UTC (rev 9965) +++ branches/rewrite/pywikibot/families/wikipedia_family.py 2012-03-04 11:45:34 UTC (rev 9966) @@ -573,6 +573,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"""