Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/942753
)
Change subject: [bugfix] fix CosmeticChangesToolkit.cleanUpLinks
......................................................................
[bugfix] fix CosmeticChangesToolkit.cleanUpLinks
Bug: T342470
Change-Id: I29266d6e089c90f77bcdda1b7e650eacd387e986
---
M pywikibot/cosmetic_changes.py
1 file changed, 11 insertions(+), 1 deletion(-)
Approvals:
Matěj Suchánek: Looks good to me, approved
Xqt: Verified; Looks good to me, approved
diff --git a/pywikibot/cosmetic_changes.py b/pywikibot/cosmetic_changes.py
index bf3e112..29d8f64 100644
--- a/pywikibot/cosmetic_changes.py
+++ b/pywikibot/cosmetic_changes.py
@@ -568,7 +568,7 @@
if not titleWithSection:
# just skip empty links.
- return match.groups()
+ return match.group()
# Remove unnecessary initial and final spaces from label.
# Please note that some editors prefer spaces around pipes.
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/942753
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I29266d6e089c90f77bcdda1b7e650eacd387e986
Gerrit-Change-Number: 942753
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged