File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -160,9 +160,9 @@ def files(self):
160160 return CompatibilityFiles .SpecPath (self .spec , self ._reader )
161161
162162
163- def wrap_spec (spec ):
163+ def wrap_spec (package ):
164164 """
165165 Construct a package spec with traversable compatibility
166166 on the spec/loader/reader.
167167 """
168- return SpecLoaderAdapter (spec , TraversableResourcesLoader )
168+ return SpecLoaderAdapter (package . __spec__ , TraversableResourcesLoader )
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ def from_package(package: types.ModuleType):
119119 "as it does not appear to correspond to an importable module (its __spec__ is None)."
120120 )
121121
122- spec = wrap_spec (package . __spec__ )
122+ spec = wrap_spec (package )
123123 reader = spec .loader .get_resource_reader (spec .name )
124124 return reader .files ()
125125
You can’t perform that action at this time.
0 commit comments