8000 gh-97850: Update the deprecation warning of `importlib.abc.Loader.load_module` by tomasr8 · Pull Request #129855 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-97850: Update the deprecation warning of importlib.abc.Loader.load_module #129855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 11, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update Loader.load_module deprecation message
  • Loading branch information
tomasr8 committed Feb 8, 2025
commit 1acb61bd20f0d53bb968bf2ed81d74f92be3cf77
2 changes: 1 addition & 1 deletion Lib/importlib/_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
0