jenkins-bot merged this change.
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.