jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/483365 )
Change subject: [bugfix] Fix parameter order of userPut method ......................................................................
[bugfix] Fix parameter order of userPut method
reorder userPut parameters to enable tagging pages for speedy deletion.
Bug: T213312 Change-Id: I6f4036928bf0cca399ba0ebac623cd1233a41afa --- M scripts/redirect.py 1 file changed, 3 insertions(+), 3 deletions(-)
Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/redirect.py b/scripts/redirect.py index 32641a7..311c8b9 100755 --- a/scripts/redirect.py +++ b/scripts/redirect.py @@ -72,8 +72,8 @@ # # (C) Daniel Herding, 2004 # (C) Purodha Blissenbach, 2009 -# (C) xqt, 2009-2018 -# (C) Pywikibot team, 2004-2018 +# (C) xqt, 2009-2019 +# (C) Pywikibot team, 2004-2019 # # Distributed under the terms of the MIT license. # @@ -481,7 +481,7 @@ page.title(with_section=False)) content = content_page.get(get_redirect=True) content = self.sdtemplate + '\n' + content - self.userPut(page, content, page.text, summary=reason, + self.userPut(page, page.text, content, summary=reason, ignore_save_related_errors=True, ignore_server_errors=True)
pywikibot-commits@lists.wikimedia.org