diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2014-03-31 22:13:30 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2014-03-31 22:13:30 (GMT) |
commit | 08af00047bb9266bfb6e1cfc539affd130b47170 (patch) | |
tree | df8377d6570466219cf5d45bcee7eab05cf97cb0 /Doc/tutorial/controlflow.rst | |
parent | 5898d4f4d917c0f3e63f0a10d01ad445afa10b74 (diff) | |
download | cpython-08af00047bb9266bfb6e1cfc539affd130b47170.zip cpython-08af00047bb9266bfb6e1cfc539affd130b47170.tar.gz cpython-08af00047bb9266bfb6e1cfc539affd130b47170.tar.bz2 |
Get rid of deprecated IOError in the doc
Diffstat (limited to 'Doc/tutorial/controlflow.rst')
-rw-r--r-- | Doc/tutorial/controlflow.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 97aea4f..ef50731 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -370,7 +370,7 @@ defined to allow. For example:: return False retries = retries - 1 if retries < 0: - raise IOError('uncooperative user') + raise OSError('uncooperative user') print(complaint) This function can be called in several ways: |