jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/342534 )
Change subject: textlib.py: DeprecationWarning: invalid escape sequence ......................................................................
textlib.py: DeprecationWarning: invalid escape sequence
Change-Id: I865cbb22dbc3f6a104eb5984a223289c5b01a7a7 --- M pywikibot/textlib.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py index 88adc31..764c270 100644 --- a/pywikibot/textlib.py +++ b/pywikibot/textlib.py @@ -1737,7 +1737,7 @@ allstars = [] starstext = removeDisabledParts(text) for star in starsList: - regex = re.compile('({{(?:template:|)%s|.*?}}[\s]*)' + regex = re.compile(r'({{(?:template:|)%s|.*?}}[\s]*)' % star, re.I) found = regex.findall(starstext) if found:
pywikibot-commits@lists.wikimedia.org