jenkins-bot merged this change.

View Change

Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
[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.

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@gno.de>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki@aol.com>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: jenkins-bot (75)