jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/479698 )
Change subject: [IMPR] use string.digits ......................................................................
[IMPR] use string.digits
Change-Id: I3618337d634663adef4e9bf70cd0885950f7f736 --- M pywikibot/date.py 1 file changed, 1 insertion(+), 3 deletions(-)
Approvals: Framawiki: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/date.py b/pywikibot/date.py index 7ba5e27..1bc43b5 100644 --- a/pywikibot/date.py +++ b/pywikibot/date.py @@ -16,6 +16,7 @@ import calendar import datetime import re +from string import digits as _decimalDigits # noqa: N812 import sys
from pywikibot.textlib import NON_LATIN_DIGITS @@ -303,9 +304,6 @@ raise ValueError('string contains regular digits')
-# Decimal digits used for various matchings -_decimalDigits = '0123456789' - # 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',
pywikibot-commits@lists.wikimedia.org