Skip to content

Commit 3986c17

Browse files
committed
Remove choices parameter from _prompt_for_confirmation
1 parent 82b71f8 commit 3986c17

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/pdb.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,7 +1466,7 @@ def do_ignore(self, arg):
14661466

14671467
complete_ignore = _complete_bpnumber
14681468

1469-
def _prompt_for_confirmation(self, prompt, choices, default):
1469+
def _prompt_for_confirmation(self, prompt, default):
14701470
try:
14711471
reply = input(prompt)
14721472
except EOFError:
@@ -1484,7 +1484,6 @@ def do_clear(self, arg):
14841484
if not arg:
14851485
reply = self._prompt_for_confirmation(
14861486
'Clear all breaks? ',
1487-
choices=('y', 'yes', 'n', 'no'),
14881487
default='no',
14891488
)
14901489
if reply in ('y', 'yes'):
@@ -2775,7 +2774,7 @@ def _create_recursive_debugger(self):
27752774
return _RemotePdb(self._sockfile, owns_sockfile=False)
27762775

27772776
@typing.override
2778-
def _prompt_for_confirmation(self, prompt, choices, default):
2777+
def _prompt_for_confirmation(self, prompt, default):
27792778
try:
27802779
return self._get_input(prompt=prompt, state="confirm")
27812780
except (EOFError, KeyboardInterrupt):

0 commit comments

Comments
 (0)