jenkins-bot has submitted this change and it was merged.
Change subject: [BUG 55275] Prevent category_redirect.py from doing cosmetic changes ......................................................................
[BUG 55275] Prevent category_redirect.py from doing cosmetic changes
category_redirect touches category to clean them. Thus it is a good idea to keep them off from doing cosmetic changes by placing it to the exception tuple inside wikipedia.py.
See also https://gerrit.wikimedia.org/r/#/c/94495/
Change-Id: Ib7a52e7876e8bbbbbcad30250db57ffd644aaeec --- M wikipedia.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: Ladsgroup: Looks good to me, approved jenkins-bot: Verified
diff --git a/wikipedia.py b/wikipedia.py index c9bc07e..a9d3a58 100644 --- a/wikipedia.py +++ b/wikipedia.py @@ -2189,7 +2189,8 @@ # 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() in ('cosmetic_changes', 'touch'): + not calledModuleName() in ('category_redirect', 'cosmetic_changes', + 'touch'): if config.cosmetic_changes_mylang_only: cc = (self.site.family.name == config.family and self.site.lang == config.mylang) or \
pywikibot-commits@lists.wikimedia.org