jenkins-bot merged this change.

View Change

Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
[cleanup] remove IsbnBot.run method

IsbnBot is derived from Bot class which has a common run method
and calls Bot.treat method with page parameter. It is not necessary
to have an additional run method to override the default behavior.

Change-Id: Ic5f437dc3eb764d7180f377a9fe56c7357958fec
---
M scripts/isbn.py
1 file changed, 0 insertions(+), 5 deletions(-)

diff --git a/scripts/isbn.py b/scripts/isbn.py
index 40ad1ae..8559f17 100755
--- a/scripts/isbn.py
+++ b/scripts/isbn.py
@@ -1533,11 +1533,6 @@
pywikibot.output('Page {0} is a redirect; skipping.'
.format(page.title(as_link=True)))

- def run(self):
- """Run the bot."""
- for page in self.generator:
- self.treat(page)
-

class IsbnWikibaseBot(WikidataBot):


To view, visit change 565780. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic5f437dc3eb764d7180f377a9fe56c7357958fec
Gerrit-Change-Number: 565780
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)