From: Thomas Grainger Date: Wed, 15 Jan 2025 21:13:59 +0000 (+0000) Subject: gh-121604: fix ResourceLoader deprecation warning message (GH-128859) X-Git-Tag: v3.14.0a5~409 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d05140f9f77d7dfc753dd1e5ac3a5962aaa03eff;p=thirdparty%2FPython%2Fcpython.git gh-121604: fix ResourceLoader deprecation warning message (GH-128859) --- diff --git a/Lib/importlib/abc.py b/Lib/importlib/abc.py index bb2837d38d83..29f01f77eff4 100644 --- a/Lib/importlib/abc.py +++ b/Lib/importlib/abc.py @@ -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__()