8000 bpo-42135 Correct version slated for importlib.find_loader removal (G… · python/cpython@9f93018 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9f93018

Browse files
authored
bpo-42135 Correct version slated for importlib.find_loader removal (GH-28312)
importlib.find_loader should also be slated for 3.12 like the others in GH-25169 and as documented in https://docs.python.org/3.11/whatsnew/3.10.html#deprecated.
1 parent a2d8c4b commit 9f93018

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Lib/importlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def find_loader(name, path=None):
7979
8080
"""
8181
warnings.warn('Deprecated since Python 3.4 and slated for removal in '
82-
'Python 3.10; use importlib.util.find_spec() instead',
82+
'Python 3.12; use importlib.util.find_spec() instead',
8383
DeprecationWarning, stacklevel=2)
8484
try:
8585
loader = sys.modules[name].__loader__
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Fix typo: ``importlib.find_loader`` is really slated for removal in Python 3.12 not 3.10, like the others in GH-25169.
2+
3+
Patch by Hugo van Kemenade.

0 commit comments

Comments
 (0)
0