jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1081502?usp=email )
Change subject: [IMPR] provide XXXI with romanNumToInt() and intToRomanNum() functions ...................................................................... [IMPR] provide XXXI with romanNumToInt() and intToRomanNum() functions Change-Id: I3c7a239ce563765dc6c9aef183339bba96acbee3 --- M pywikibot/date.py 1 file changed, 6 insertions(+), 4 deletions(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/pywikibot/date.py b/pywikibot/date.py index 7fe26b0..a77176e 100644 --- a/pywikibot/date.py +++ b/pywikibot/date.py @@ -335,10 +335,12 @@ # Helper for roman numerals number representation -_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'] +_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', + 'XXXI', +] def intToRomanNum(i: int) -> str: -- To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1081502?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Change-Id: I3c7a239ce563765dc6c9aef183339bba96acbee3 Gerrit-Change-Number: 1081502 Gerrit-PatchSet: 2 Gerrit-Owner: Xqt <[email protected]> Gerrit-Reviewer: Xqt <[email protected]> Gerrit-Reviewer: jenkins-bot
_______________________________________________ Pywikibot-commits mailing list -- [email protected] To unsubscribe send an email to [email protected]
