jenkins-bot has submitted this change and it was merged.
Change subject: bot_choice.py: Don't print the context when ContextOption.result is called ......................................................................
bot_choice.py: Don't print the context when ContextOption.result is called
solve_disambiguation.py was printing the context twice when the user chose the "[m]ore context" option. This should fix that.
Bug: T138670 Change-Id: If5dd70b51f6267f1ac7b5e629e18b786d9f6cfdd --- M pywikibot/bot_choice.py 1 file changed, 1 insertion(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/bot_choice.py b/pywikibot/bot_choice.py index 6be7704..e116847 100755 --- a/pywikibot/bot_choice.py +++ b/pywikibot/bot_choice.py @@ -264,9 +264,8 @@ self.end = end
def result(self, value): - """Add the delta to the context and output it.""" + """Add the delta to the context.""" self.context += self.delta - super(ContextOption, self).result(value)
def output(self): """Output the context."""