Skip to content

Commit 3b5d345

Browse files
committed
Ensure trees module is imported. Closes python#88.
1 parent 90aa959 commit 3b5d345

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

importlib_resources/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
from ._compat import metadata
66
from ._common import as_file
77

8+
# for compatibility. Ref #88
9+
__import__('importlib_resources.trees')
10+
811

912
__all__ = [
1013
'Package',

importlib_resources/docs/changelog.rst

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

5+
v1.3.1
6+
======
7+
* For improved compatibility, ``importlib_resources.trees`` is
8+
now imported implicitly. Closes #88.
9+
510
v1.3.0
611
======
712
* Add extensibility support for non-standard loaders to supply

0 commit comments

Comments
 (0)