http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9190
Revision: 9190 Author: xqt Date: 2011-04-21 06:30:32 +0000 (Thu, 21 Apr 2011) Log Message: ----------- change _romanNumbers back to a list since tuple.index() was introduced in py 2.6 first (bug #3290754)
Modified Paths: -------------- branches/rewrite/pywikibot/date.py
Modified: branches/rewrite/pywikibot/date.py =================================================================== --- branches/rewrite/pywikibot/date.py 2011-04-21 06:10:27 UTC (rev 9189) +++ branches/rewrite/pywikibot/date.py 2011-04-21 06:30:32 UTC (rev 9190) @@ -242,10 +242,10 @@ _decimalDigits = '0123456789'
# Helper for roman numerals number representation -_romanNumbers = ('-', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', +_romanNumbers = ['-', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII', 'XIII', 'XIV', 'XV', 'XVI', 'XVII', 'XVIII', 'XIX', 'XX', 'XXI', 'XXII', 'XXIII', 'XXIV', 'XXV', 'XXVI', - 'XXVII', 'XXVIII', 'XXIX', 'XXX') + 'XXVII', 'XXVIII', 'XXIX', 'XXX']
def intToRomanNum(i): if i >= len(_romanNumbers):
pywikipedia-svn@lists.wikimedia.org