http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9189
Revision: 9189 Author: xqt Date: 2011-04-21 06:10:27 +0000 (Thu, 21 Apr 2011) Log Message: ----------- change _romanNumbers back to a list since tuple.index() was introduced in py 2.6 (bug #3290754)
Modified Paths: -------------- trunk/pywikipedia/date.py
Modified: trunk/pywikipedia/date.py =================================================================== --- trunk/pywikipedia/date.py 2011-04-20 16:02:00 UTC (rev 9188) +++ trunk/pywikipedia/date.py 2011-04-21 06:10:27 UTC (rev 9189) @@ -243,10 +243,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