jenkins-bot has submitted this change and it was merged.
Change subject: Revert "Disable cleanUpLinks in cosmetic_changes.py in Persian language wikis" ......................................................................
Revert "Disable cleanUpLinks in cosmetic_changes.py in Persian language wikis"
method always fails here. Must return the unchanged text for fa-wiki only.
This reverts commit 2adb3b87e0b4c5a2f116e611625f1434a74dd2b1.
Change-Id: Ibb729d138be423593f8cd8898f81d743031a2ba9 --- M cosmetic_changes.py 1 file changed, 0 insertions(+), 4 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/cosmetic_changes.py b/cosmetic_changes.py index 4a9f528..b15c226 100644 --- a/cosmetic_changes.py +++ b/cosmetic_changes.py @@ -377,10 +377,6 @@ def cleanUpLinks(self, text): # helper function which works on one link and either returns it # unmodified, or returns a replacement. - if self.site.sitename() != u'wikipedia:fa': - # Per community discussion, this one is not allowed in fa.wp - return - def handleOneLink(match): titleWithSection = match.group('titleWithSection') label = match.group('label')