jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/871288 )
Change subject: [fix] Fix deprecation warning for NoRedirectPageBot class ......................................................................
[fix] Fix deprecation warning for NoRedirectPageBot class
Bug: T325912 Change-Id: I3eea941e6dccf4e89f4734ced804c892ec1eb12a --- M pywikibot/bot.py 1 file changed, 11 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/bot.py b/pywikibot/bot.py index 3ccc9e9..95dee26 100644 --- a/pywikibot/bot.py +++ b/pywikibot/bot.py @@ -2110,7 +2110,7 @@
def __init__(self, *args, **kwargs): """Deprecate NoRedirectPageBot.""" - issue_deprecation_warning('RedirectPageBot', + issue_deprecation_warning('NoRedirectPageBot', "BaseBot attribute 'use_redirects = False'", since='7.2.0') super().__init__(*args, **kwargs)