@@ -449,12 +449,12 @@ ABC hierarchy::
449449 Loaders that have a file-like storage back-end
450450 that allows storing arbitrary data
451451 can implement this abstract method to give direct access
452- to the data stored. :exc: `IOError ` is to be raised if the *path * cannot
452+ to the data stored. :exc: `OSError ` is to be raised if the *path * cannot
453453 be found. The *path * is expected to be constructed using a module's
454454 :attr: `__file__ ` attribute or an item from a package's :attr: `__path__ `.
455455
456456 .. versionchanged :: 3.4
457- Raises :exc: `IOError ` instead of :exc: `NotImplementedError `.
457+ Raises :exc: `OSError ` instead of :exc: `NotImplementedError `.
458458
459459
460460.. class :: InspectLoader
@@ -609,12 +609,12 @@ ABC hierarchy::
609609 - ``'size' `` (optional): the size in bytes of the source code.
610610
611611 Any other keys in the dictionary are ignored, to allow for future
612- extensions. If the path cannot be handled, :exc: `IOError ` is raised.
612+ extensions. If the path cannot be handled, :exc: `OSError ` is raised.
613613
614614 .. versionadded :: 3.3
615615
616616 .. versionchanged :: 3.4
617- Raise :exc: `IOError ` instead of :exc: `NotImplementedError `.
617+ Raise :exc: `OSError ` instead of :exc: `NotImplementedError `.
618618
619619 .. method :: path_mtime(path)
620620
@@ -624,10 +624,10 @@ ABC hierarchy::
624624 .. deprecated :: 3.3
625625 This method is deprecated in favour of :meth: `path_stats `. You don't
626626 have to implement it, but it is still available for compatibility
627- purposes. Raise :exc: `IOError ` if the path cannot be handled.
627+ purposes. Raise :exc: `OSError ` if the path cannot be handled.
628628
629629 .. versionchanged :: 3.4
630- Raise :exc: `IOError ` instead of :exc: `NotImplementedError `.
630+ Raise :exc: `OSError ` instead of :exc: `NotImplementedError `.
631631
632632 .. method :: set_data(path, data)
633633
0 commit comments