jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/565780 )
Change subject: [cleanup] remove IsbnBot.run method
......................................................................
[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(-)
Approvals:
Dvorapa: Looks good to me, approved
jenkins-bot: Verified
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 https://gerrit.wikimedia.org/r/565780
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: Ic5f437dc3eb764d7180f377a9fe56c7357958fec
Gerrit-Change-Number: 565780
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: D3r1ck01 <[email protected]>
Gerrit-Reviewer: Dvorapa <[email protected]>
Gerrit-Reviewer: jenkins-bot (75)
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits