Skip to content

Commit 908c96a

Browse files
jaracograingert
andauthored
Identify the attribute name, not just the module in which it appears 🤦
Co-authored-by: Thomas Grainger <[email protected]>
1 parent 529e6ea commit 908c96a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Lib/importlib/abc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __getattr__(name):
3232
"""
3333
if name in _resources_abc.__all__:
3434
obj = getattr(_resources_abc, name)
35-
warnings._deprecated(__name__, remove=(3, 14))
35+
warnings._deprecated(f"{__name__}.{name}", remove=(3, 14))
3636
globals()[name] = obj
3737
return obj
3838
raise AttributeError(f'module {__name__!r} has no attribute {name!r}')

0 commit comments

Comments
 (0)