jenkins-bot has submitted this change and it was merged.

Change subject: [FIX] InteractiveReplace: Don't assume dict
......................................................................


[FIX] InteractiveReplace: Don't assume dict

When rebasing 0d42f6fb the type of _own_choices changed from dict into a list
(to preserve the order) but some of the underlying code hasn't been modified
accordingly.

Change-Id: I8d52adf17392b7ac3a251eacde7a178c9633c247
---
M pywikibot/bot.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  John Vandenberg: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index 2410708..722670e 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -905,7 +905,7 @@
         choices = []
         for name, choice in self._own_choices:
             if getattr(self, 'allow_' + name):
-                choices += [self._own_choices[name]]
+                choices += [choice]
         if self.context_delta > 0:
             choices += [HighlightContextOption(
                 'more context', 'm', self.current_text, self.context,

-- 
To view, visit https://gerrit.wikimedia.org/r/220733
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I8d52adf17392b7ac3a251eacde7a178c9633c247
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to