mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Fix more raise statments in the docs.
This commit is contained in:
parent
c7526f5b3e
commit
58721bca11
2 changed files with 3 additions and 2 deletions
|
@ -329,7 +329,8 @@ defined to allow. For example::
|
|||
if ok in ('y', 'ye', 'yes'): return True
|
||||
if ok in ('n', 'no', 'nop', 'nope'): return False
|
||||
retries = retries - 1
|
||||
if retries < 0: raise IOError, 'refusenik user'
|
||||
if retries < 0:
|
||||
raise IOError('refusenik user')
|
||||
print(complaint)
|
||||
|
||||
This function can be called either like this: ``ask_ok('Do you really want to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue