jenkins-bot has submitted this change and it was merged.
Change subject: WikidataBot as subclass of Bot
......................................................................
WikidataBot as subclass of Bot
to take advantage of new methods such as quit(), etc.
The 'always' option is not used by Wikidata bots currently,
but has been retained for future usage.
Change-Id: Icecd762cd44092129106800ac93e772dde3913ef
---
M pywikibot/bot.py
1 file changed, 1 insertion(+), 3 deletions(-)
Approvals:
John Vandenberg: Looks good to me, but someone else must approve
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index d0a20f9..e42b71c 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -914,12 +914,10 @@
self.__class__.__name__)
-class WikidataBot:
+class WikidataBot(Bot):
"""
Generic Wikidata Bot to be subclassed.
-
- Used in claimit.py, coordinate_import.py and harvest_template.py
"""
def cacheSources(self):
--
To view, visit
https://gerrit.wikimedia.org/r/157793
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Icecd762cd44092129106800ac93e772dde3913ef
Gerrit-PatchSet: 3
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Ricordisamoa <ricordisamoa(a)openmailbox.org>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Ricordisamoa <ricordisamoa(a)openmailbox.org>
Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>