Xqt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/268945

Change subject: [bugfix] re-enable 'Quit' option for BaseBot.user_confirm 
method.
......................................................................

[bugfix] re-enable 'Quit' option for BaseBot.user_confirm method.

'Quit' option was lost in I3d4ea6461 but still needed.
This patch re-enables this option, discarding automatic_quit and
call the corresponding regular BaseBot.quit method instead of
raising an exception which could crop out elsewhere.

Bug: T126154
Change-Id: I0cbc61eb23194a29a5a1e85864ceb0d48305e20b
---
M pywikibot/bot.py
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/45/268945/1

diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index 18436db..eed8f6e 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -1222,8 +1222,10 @@
         choice = pywikibot.input_choice(question,
                                         [('Yes', 'y'),
                                          ('No', 'N'),
-                                         ('All', 'a')],
-                                        default='N')
+                                         ('All', 'a'),
+                                         ('Quit', 'q')],
+                                        default='N',
+                                        automatic_quit=False)
 
         if choice == 'n':
             return False

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0cbc61eb23194a29a5a1e85864ceb0d48305e20b
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>

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

Reply via email to