jenkins-bot merged this change.
[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(-)
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.
To view, visit change 589892. To unsubscribe, or for help writing mail filters, visit settings.