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 import warnings
warnings.warn('importlib.abc.ResourceLoader is deprecated in ' warnings.warn('importlib.abc.ResourceLoader is deprecated in '
'favour of supporting resource loading through ' 'favour of supporting resource loading through '
'importlib.resources.abc.ResourceReader.', 'importlib.resources.abc.TraversableResources.',
DeprecationWarning, stacklevel=2) DeprecationWarning, stacklevel=2)
super().__init__() super().__init__()