jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/632438 )
Change subject: [bugfix] Fix for opt.update to prevent deprecation warning
......................................................................
[bugfix] Fix for opt.update to prevent deprecation warning
Change-Id: Ibefe2426a1b0d8b5ae965def17ca77b726a000f0
---
M pywikibot/bot.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index 9857f13..079e987 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -1054,7 +1054,7 @@
# self.options contains the options overridden from defaults
self._options = {opt: options[opt]
for opt in received_options & valid_options}
- self.opt.update(self.options)
+ self.opt.update(self._options)
for opt in received_options - valid_options:
pywikibot.warning('{} is not a valid option. It was ignored.'
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/632438
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: Ibefe2426a1b0d8b5ae965def17ca77b726a000f0
Gerrit-Change-Number: 632438
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