Skip to content
Prev Previous commit
Next Next commit
Apply suggestion from @danielhollas
Co-authored-by: Daniel Hollas <danekhollas@gmail.com>
  • Loading branch information
whitphx and danielhollas authored Oct 22, 2025
commit 9e98cfccf3437acad88987df16ce898c052f1a57
4 changes: 2 additions & 2 deletions Lib/importlib/resources/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ def from_package(package: types.ModuleType):

if package.__spec__ is None:
raise TypeError(
f"Cannot access resources because the code used to populate '{package.__name__}' "
"does not correspond directly with an importable module."
f"Cannot access resources for '{package.__name__}' "
"as it does not correspond to an importable module."
)

spec = wrap_spec(package.__spec__)
Expand Down
Loading