summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2014-03-31 22:13:30 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2014-03-31 22:13:30 (GMT)
commit08af00047bb9266bfb6e1cfc539affd130b47170 (patch)
treedf8377d6570466219cf5d45bcee7eab05cf97cb0 /Doc/library
parent5898d4f4d917c0f3e63f0a10d01ad445afa10b74 (diff)
downloadcpython-08af00047bb9266bfb6e1cfc539affd130b47170.zip
cpython-08af00047bb9266bfb6e1cfc539affd130b47170.tar.gz
cpython-08af00047bb9266bfb6e1cfc539affd130b47170.tar.bz2
Get rid of deprecated IOError in the doc
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/importlib.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
index f3b2063..afdae9e 100644
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -449,12 +449,12 @@ ABC hierarchy::
Loaders that have a file-like storage back-end
that allows storing arbitrary data
can implement this abstract method to give direct access
- to the data stored. :exc:`IOError` is to be raised if the *path* cannot
+ to the data stored. :exc:`OSError` is to be raised if the *path* cannot
be found. The *path* is expected to be constructed using a module's
:attr:`__file__` attribute or an item from a package's :attr:`__path__`.
.. versionchanged:: 3.4
- Raises :exc:`IOError` instead of :exc:`NotImplementedError`.
+ Raises :exc:`OSError` instead of :exc:`NotImplementedError`.
.. class:: InspectLoader
@@ -609,12 +609,12 @@ ABC hierarchy::
- ``'size'`` (optional): the size in bytes of the source code.
Any other keys in the dictionary are ignored, to allow for future
- extensions. If the path cannot be handled, :exc:`IOError` is raised.
+ extensions. If the path cannot be handled, :exc:`OSError` is raised.
.. versionadded:: 3.3
.. versionchanged:: 3.4
- Raise :exc:`IOError` instead of :exc:`NotImplementedError`.
+ Raise :exc:`OSError` instead of :exc:`NotImplementedError`.
.. method:: path_mtime(path)
@@ -624,10 +624,10 @@ ABC hierarchy::
.. deprecated:: 3.3
This method is deprecated in favour of :meth:`path_stats`. You don't
have to implement it, but it is still available for compatibility
- purposes. Raise :exc:`IOError` if the path cannot be handled.
+ purposes. Raise :exc:`OSError` if the path cannot be handled.
.. versionchanged:: 3.4
- Raise :exc:`IOError` instead of :exc:`NotImplementedError`.
+ Raise :exc:`OSError` instead of :exc:`NotImplementedError`.
.. method:: set_data(path, data)