mirror of
https://github.com/python/cpython.git
synced 2025-12-10 19:10:59 +00:00
gh-121604: fix ResourceLoader deprecation warning message (GH-128859)
This commit is contained in:
parent
5eee2fe2b0
commit
d05140f9f7
1 changed files with 1 additions and 1 deletions
|
|
@ -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__()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue