Skip to content

Commit d4b3734

Browse files
committed
Merge remote-tracking branch 'origin/feature/backport-39'. Closes python#96.
2 parents dcd804c + 060bc90 commit d4b3734

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

docs/changelog.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
importlib_resources NEWS
33
==========================
44

5+
v2.0.0
6+
======
7+
8+
* Loaders are no longer expected to implement the
9+
``abc.TraversableResources`` interface, but are instead
10+
expected to return ``TraversableResources`` from their
11+
``get_resource_reader`` method.
12+
513
v1.5.0
614
======
715

docs/using.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ Both relative and absolute paths work for Python 3.7 and newer.
166166
Extending
167167
=========
168168

169-
Starting with Python 3.9 and ``importlib_resources`` 1.3, this package
169+
Starting with Python 3.9 and ``importlib_resources`` 2.0, this package
170170
provides an interface for non-standard loaders, such as those used by
171-
executable bundlers, to supply resources. These loaders should subclass
172-
from the ``TraversableResources`` abstract class and implement the
173-
``files()`` method to return a ``Traversable`` object.
171+
executable bundlers, to supply resources. These loaders should supply a
172+
``get_resource_reader`` method, which is passed a module name and
173+
should return a ``TraversableResources`` instance.
174174

175175

176176
.. rubric:: Footnotes

0 commit comments

Comments
 (0)