jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/589892 )
Change subject: [bugfix] Use SingleSiteBot with ReplaceRobot ......................................................................
[bugfix] Use SingleSiteBot with ReplaceRobot
Use SingleSiteBot to omit site warning with Bot class
Change-Id: I7a4f8fde46684b9a9a432da1411c4cbf4c2266fc --- M scripts/replace.py 1 file changed, 3 insertions(+), 2 deletions(-)
Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/replace.py b/scripts/replace.py index d358ff8..39248c6 100755 --- a/scripts/replace.py +++ b/scripts/replace.py @@ -156,7 +156,8 @@ from pywikibot.exceptions import ArgumentDeprecationWarning # Imports predefined replacements tasks from fixes.py from pywikibot import fixes -from pywikibot import i18n, textlib, pagegenerators, Bot +from pywikibot import i18n, textlib, pagegenerators +from pywikibot.bot import SingleSiteBot from pywikibot.tools import ( chars, deprecated, @@ -499,7 +500,7 @@ return False
-class ReplaceRobot(Bot): +class ReplaceRobot(SingleSiteBot):
"""A bot that can do text replacements.
pywikibot-commits@lists.wikimedia.org