jenkins-bot merged this change.

View Change

Approvals: Framawiki: Looks good to me, approved jenkins-bot: Verified
[IMPR] use string.digits

Change-Id: I3618337d634663adef4e9bf70cd0885950f7f736
---
M pywikibot/date.py
1 file changed, 1 insertion(+), 3 deletions(-)

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',

To view, visit change 479698. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I3618337d634663adef4e9bf70cd0885950f7f736
Gerrit-Change-Number: 479698
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Framawiki <framawiki@tools.wmflabs.org>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: jenkins-bot (75)