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.
--
To view, visit
https://gerrit.wikimedia.org/r/589892
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I7a4f8fde46684b9a9a432da1411c4cbf4c2266fc
Gerrit-Change-Number: 589892
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki(a)aol.com>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: jenkins-bot (75)