]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-121604: fix ResourceLoader deprecation warning message (GH-128859)
authorThomas Grainger <tagrain@gmail.com>
Wed, 15 Jan 2025 21:13:59 +0000 (21:13 +0000)
committerGitHub <noreply@github.com>
Wed, 15 Jan 2025 21:13:59 +0000 (21:13 +0000)
Lib/importlib/abc.py

index bb2837d38d83f10758f3d432b3802d8cbbf06631..29f01f77eff4a0d0212367f5b05cc7b8b4380549 100644 (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__()