diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-12 18:10:51 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-12 18:10:51 (GMT) |
commit | 62ab10a05acdc8bb45549e4df6fd6fb5f4623aab (patch) | |
tree | aa9923e821b0171ac71d11f9e8414fc594fcb61c /Doc/library/functions.rst | |
parent | 5d6fbe82078fe67437755bccfa504dbbcf909a74 (diff) | |
download | cpython-62ab10a05acdc8bb45549e4df6fd6fb5f4623aab.zip cpython-62ab10a05acdc8bb45549e4df6fd6fb5f4623aab.tar.gz cpython-62ab10a05acdc8bb45549e4df6fd6fb5f4623aab.tar.bz2 |
Replace mentions of IOError
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r-- | Doc/library/functions.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 4ed3ec5..22e2468 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -783,7 +783,7 @@ are always available. They are listed here in alphabetical order. .. function:: open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True) Open *file* and return a corresponding stream. If the file cannot be opened, - an :exc:`IOError` is raised. + an :exc:`OSError` is raised. *file* is either a string or bytes object giving the pathname (absolute or relative to the current working directory) of the file to be opened or @@ -912,6 +912,9 @@ are always available. They are listed here in alphabetical order. (where :func:`open` is declared), :mod:`os`, :mod:`os.path`, :mod:`tempfile`, and :mod:`shutil`. + .. versionchanged:: 3.3 + :exc:`IOError` used to be raised, it is now an alias of :exc:`OSError`. + .. XXX works for bytes too, but should it? .. function:: ord(c) |