http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10333
Revision: 10333 Author: xqt Date: 2012-06-08 16:33:42 +0000 (Fri, 08 Jun 2012) Log Message: ----------- do not invoke cosmetic_changes with touch.py
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2012-06-08 14:58:03 UTC (rev 10332) +++ trunk/pywikipedia/wikipedia.py 2012-06-08 16:33:42 UTC (rev 10333) @@ -1980,7 +1980,8 @@ self._editrestriction = False # If no comment is given for the change, use the default comment = comment or action - if config.cosmetic_changes and not self.isTalkPage() and not calledModuleName() == 'cosmetic_changes': + if config.cosmetic_changes and not self.isTalkPage() and \ + not calledModuleName() in ('cosmetic_changes', 'touch'): if config.cosmetic_changes_mylang_only: cc = (self.site().family.name == config.family and self.site().lang == config.mylang) or \ self.site().family.name in config.cosmetic_changes_enable.keys() and \
pywikipedia-svn@lists.wikimedia.org