Skip to content

Commit a157881

Browse files
[3.12] gh-113113: doc: use less ambiguously named variable (gh-113114) (gh-113122)
1 parent c6c559a commit a157881

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)