jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/513579 )
Change subject: No need to strip already stripped text ......................................................................
No need to strip already stripped text
Textlib method removeCategoryLinks already strips the text, there is no need to do that again.
Change-Id: Ib89ed199ae7b7985564cfcab53961a4ee5c19b80 --- M scripts/imagecopy_self.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/imagecopy_self.py b/scripts/imagecopy_self.py index 11880ab..57394c8 100644 --- a/scripts/imagecopy_self.py +++ b/scripts/imagecopy_self.py @@ -522,7 +522,7 @@ for (regex, repl) in licenseTemplates[imagepage.site.lang]: text = re.sub(regex, '', text, flags=re.IGNORECASE)
- text = pywikibot.removeCategoryLinks(text, imagepage.site()).strip() + text = pywikibot.removeCategoryLinks(text, imagepage.site())
description = self.convertLinks(text.strip(), imagepage.site()) date = self.getUploadDate(imagepage)
pywikibot-commits@lists.wikimedia.org