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:
--
To view, visit
https://gerrit.wikimedia.org/r/342534
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I865cbb22dbc3f6a104eb5984a223289c5b01a7a7
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>