http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10832
Revision: 10832 Author: huji Date: 2012-12-25 20:32:23 +0000 (Tue, 25 Dec 2012) Log Message: ----------- (bug 3594792) do not convert English comma to Persian comma; the current exceptions are not complicated enough, analysis of bot activities shows that false positive rate is too high, therefore the feature is removed
Modified Paths: -------------- trunk/pywikipedia/cosmetic_changes.py
Modified: trunk/pywikipedia/cosmetic_changes.py =================================================================== --- trunk/pywikipedia/cosmetic_changes.py 2012-12-24 14:29:26 UTC (rev 10831) +++ trunk/pywikipedia/cosmetic_changes.py 2012-12-25 20:32:23 UTC (rev 10832) @@ -739,7 +739,6 @@ #not to let bot edits in latin content exceptions.append(re.compile(u"[A-Za-z\d]+? *?, *?[A-Za-z\d]+?")) exceptions.append(pattern) - text = pywikibot.replaceExcept(text, u',', u'،', exceptions) if self.site.lang=='ckb': text = pywikibot.replaceExcept(text, ur'ه([.،_<]\s])',
pywikipedia-svn@lists.wikimedia.org