Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/637863 )
Change subject: [bugfix] Fix options for harvest_template.py
......................................................................
[bugfix] Fix options for harvest_template.py
Change-Id: I98a675731bc6c4213226169b9a444cfb8f55dee1
---
M scripts/harvest_template.py
1 file changed, 3 insertions(+), 3 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/scripts/harvest_template.py b/scripts/harvest_template.py
index 92d4481..2fe7e6e 100755
--- a/scripts/harvest_template.py
+++ b/scripts/harvest_template.py
@@ -237,10 +237,10 @@
"""
Compare bot's (global) and provided (local) options.
- @see: L{OptionHandler.getOption}
+ @see: L{OptionHandler}
"""
- default = self.opt.option
- local = handler.getOption(option)
+ default = self.opt[option]
+ local = handler.opt[option]
if isinstance(default, bool) and isinstance(local, bool):
return default is not local
else:
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/637863
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I98a675731bc6c4213226169b9a444cfb8f55dee1
Gerrit-Change-Number: 637863
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits