https://github.com/python/cpython/commit/d05140f9f77d7dfc753dd1e5ac3a5962aaa03eff
commit: d05140f9f77d7dfc753dd1e5ac3a5962aaa03eff
branch: main
author: Thomas Grainger <[email protected]>
committer: brettcannon <[email protected]>
date: 2025-01-15T21:13:59Z
summary:

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

files:
M Lib/importlib/abc.py

diff --git a/Lib/importlib/abc.py b/Lib/importlib/abc.py
index bb2837d38d83f1..29f01f77eff4a0 100644
--- a/Lib/importlib/abc.py
+++ b/Lib/importlib/abc.py
@@ -74,7 +74,7 @@ def __init__(self):
         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__()
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to