diff options
| author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2014-03-31 22:14:27 (GMT) |
|---|---|---|
| committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2014-03-31 22:14:27 (GMT) |
| commit | d6ee27895adbd7cf66f8dd1591ecced7cc8d70fc (patch) | |
| tree | 517922418de871dc1088b9d6cffc62eadbf3ab80 /Doc/tutorial/errors.rst | |
| parent | a7906dd2d9fa19b9722d81e8d53fcc855bc8f8c0 (diff) | |
| parent | 08af00047bb9266bfb6e1cfc539affd130b47170 (diff) | |
| download | cpython-d6ee27895adbd7cf66f8dd1591ecced7cc8d70fc.zip cpython-d6ee27895adbd7cf66f8dd1591ecced7cc8d70fc.tar.gz cpython-d6ee27895adbd7cf66f8dd1591ecced7cc8d70fc.tar.bz2 | |
Merge 3.4: Get rid of deprecated IOError in the doc
Diffstat (limited to 'Doc/tutorial/errors.rst')
| -rw-r--r-- | Doc/tutorial/errors.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst index 4282151..d048ae9 100644 --- a/Doc/tutorial/errors.rst +++ b/Doc/tutorial/errors.rst @@ -131,8 +131,8 @@ the exception (allowing a caller to handle the exception as well):: f = open('myfile.txt') s = f.readline() i = int(s.strip()) - except IOError as err: - print("I/O error: {0}".format(err)) + except OSError as err: + print("OS error: {0}".format(err)) except ValueError: print("Could not convert data to an integer.") except: |
