We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1780b1f commit 1886e2bCopy full SHA for 1886e2b
importlib_resources/_compat.py
@@ -29,6 +29,9 @@ class TraversableResourcesLoader:
29
"""
30
Adapt loaders to provide TraversableResources and other
31
compatibility.
32
+
33
+ Used primarily for Python 3.9 and earlier where the native
34
+ loaders do not yet implement TraversableResources.
35
36
37
def __init__(self, spec):
@@ -81,6 +84,9 @@ def wrap_spec(package):
81
84
82
85
Construct a package spec with traversable compatibility
83
86
on the spec/loader/reader.
87
88
+ Supersedes _adapters.wrap_spec to use TraversableResourcesLoader
89
+ from above for older Python compatibility (<3.10).
90
91
from . import _adapters
92
0 commit comments