Skip to content

Commit fb4cb7c

Browse files
authored
gh-113113: doc: use less ambiguously named variable (gh-113114)
1 parent fd81afc commit fb4cb7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/tutorial/controlflow.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,10 +559,10 @@ defined to allow. For example::
559559

560560
def ask_ok(prompt, retries=4, reminder='Please try again!'):
561561
while True:
562-
ok = input(prompt)
563-
if ok in ('y', 'ye', 'yes'):
562+
reply = input(prompt)
563+
if reply in {'y', 'ye', 'yes'}:
564564
return True
565-
if ok in ('n', 'no', 'nop', 'nope'):
565+
if reply in {'n', 'no', 'nop', 'nope'}:
566566
return False
567567
retries = retries - 1
568568
if retries < 0:

0 commit comments

Comments
 (0)