We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63c3c76 commit 8525926Copy full SHA for 8525926
Lib/importlib/abc.py
@@ -28,18 +28,11 @@
28
def __getattr__(name, canonical=_resources_abc):
29
"""
30
For backwards compatibility, continue to make names
31
- from canonical available through this module.
+ from canonical available through this module. #93963
32
33
if name in canonical.__all__:
34
obj = getattr(canonical, name)
35
- import warnings
36
- warnings.warn(
37
- f"Using or importing the ABCs from {__name__!r} instead "
38
- f"of from {canonical.__name__!r} is now deprecated, "
39
- "scheduled for removal in Python 3.13",
40
- DeprecationWarning,
41
- stacklevel=2,
42
- )
+ warnings._deprecated(__name__, remove=(3, 14))
43
globals()[name] = obj
44
return obj
45
raise AttributeError(f'module {__name__!r} has no attribute {name!r}')
0 commit comments