diff options
author | Collin Winter <collinw@gmail.com> | 2007-09-10 00:39:52 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-09-10 00:39:52 (GMT) |
commit | 58721bca113398b58e774515360b8d04bf67e9ca (patch) | |
tree | 0a381d505db5b1df0c53797737f3795a24d05b44 /Doc/tutorial/controlflow.rst | |
parent | c7526f5b3eaf8e2e4ad81ea479b85418a7f032f4 (diff) | |
download | cpython-58721bca113398b58e774515360b8d04bf67e9ca.zip cpython-58721bca113398b58e774515360b8d04bf67e9ca.tar.gz cpython-58721bca113398b58e774515360b8d04bf67e9ca.tar.bz2 |
Fix more raise statments in the docs.
Diffstat (limited to 'Doc/tutorial/controlflow.rst')
-rw-r--r-- | Doc/tutorial/controlflow.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index ce47164..5a182a9 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -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 |