jenkins-bot has submitted this change and it was merged.
Change subject: Disable cleanUpLinks in cosmetic_changes.py in Persian language wikis ......................................................................
Disable cleanUpLinks in cosmetic_changes.py in Persian language wikis
Community thinks this function has too many issues. I do this upon request of User:Yamaha5 The discussion is here: http://bit.ly/1KMVZ7J
Change-Id: I4f40c7a89a6fd698009a6290e18948e3924f4f78 --- M cosmetic_changes.py 1 file changed, 4 insertions(+), 0 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/cosmetic_changes.py b/cosmetic_changes.py index b15c226..4a9f528 100644 --- a/cosmetic_changes.py +++ b/cosmetic_changes.py @@ -377,6 +377,10 @@ 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')
pywikibot-commits@lists.wikimedia.org