gh-121604: fix ResourceLoader deprecation warning message (GH-128859)

This commit is contained in:
Thomas Grainger 2025-01-15 21:13:59 +00:00 committed by GitHub
parent 5eee2fe2b0
commit d05140f9f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,7 +74,7 @@ class ResourceLoader(Loader):
import warnings
warnings.warn('importlib.abc.ResourceLoader is deprecated in '
'favour of supporting resource loading through '
'importlib.resources.abc.ResourceReader.',
'importlib.resources.abc.TraversableResources.',
DeprecationWarning, stacklevel=2)
super().__init__()