gh-97850: Update the deprecation warning of importlib.abc.Loader.load_module (GH-129855)

This commit is contained in:
Tomas R. 2025-02-11 20:04:16 +01:00 committed by GitHub
parent 5cdd6e5e75
commit aa81a6f6e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 13 additions and 8 deletions

View file

@ -526,7 +526,7 @@ def _load_module_shim(self, fullname):
"""
msg = ("the load_module() method is deprecated and slated for removal in "
"Python 3.12; use exec_module() instead")
"Python 3.15; use exec_module() instead")
_warnings.warn(msg, DeprecationWarning)
spec = spec_from_loader(fullname, self)
if fullname in sys.modules: