jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
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(-)

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 change 513579. To unsubscribe, or for help writing mail filters, visit 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@seznam.cz>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot (75)