gh-97850: Suggest `TraversableResources` as the alternative for `Reso… · python/cpython@256d6d2

GitHub

Original file line numberDiff line numberDiff line change@@ -380,13 +380,15 @@ ABC hierarchy::

380380381381.. class:: ResourceLoader

382382383+ *Superseded by TraversableResources*

384+383385 An abstract base class for a :term:`loader` which implements the optional

384386:pep:`302` protocol for loading arbitrary resources from the storage

385387 back-end.

386388387389 .. deprecated:: 3.7

388390 This ABC is deprecated in favour of supporting resource loading

389- through :class:`importlib.resources.abc.ResourceReader`.

391+ through :class:`importlib.resources.abc.TraversableResources`.

390392391393 .. abstractmethod:: get_data(path)

392394