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)
--
To view, visit
https://gerrit.wikimedia.org/r/513579
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib89ed199ae7b7985564cfcab53961a4ee5c19b80
Gerrit-Change-Number: 513579
Gerrit-PatchSet: 2
Gerrit-Owner: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot (75)