jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] CosmeticChanges: Use correct parameters ......................................................................
[FIX] CosmeticChanges: Use correct parameters
When in bce9ad9c6624b6ec914a2607873a9f845700db4a the CurrentPageBot was introduced CosmeticChanges was also converted and using the new put_current method but that did change the newtext parameter to new_text which wasn't reflected in the script. It also accidentally activated that CosmeticChanges shows the diff too.
Change-Id: I74a3ec50bcd2a0d209b94aa435f67d1ef30da506 --- M scripts/cosmetic_changes.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/cosmetic_changes.py b/scripts/cosmetic_changes.py index 8012326..b04acb8 100755 --- a/scripts/cosmetic_changes.py +++ b/scripts/cosmetic_changes.py @@ -917,10 +917,10 @@ """Treat page with the cosmetic toolkit.""" try: ccToolkit = CosmeticChangesToolkit.from_page( - self.current_page, True, self.getOption('ignore')) + self.current_page, False, self.getOption('ignore')) changedText = ccToolkit.change(self.current_page.get()) if changedText is not False: - self.put_current(newtext=changedText, + self.put_current(new_text=changedText, comment=self.getOption('comment'), async=self.getOption('async')) except pywikibot.LockedPage:
pywikibot-commits@lists.wikimedia.org