Skip to content

Commit

Permalink
Identify the attribute name, not just the module in which it appears 🤦
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Grainger <[email protected]>
  • Loading branch information
jaraco and graingert authored Jul 3, 2022
1 parent 529e6ea commit 908c96a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/importlib/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __getattr__(name):
"""
if name in _resources_abc.__all__:
obj = getattr(_resources_abc, name)
warnings._deprecated(__name__, remove=(3, 14))
warnings._deprecated(f"{__name__}.{name}", remove=(3, 14))
globals()[name] = obj
return obj
raise AttributeError(f'module {__name__!r} has no attribute {name!r}')
Expand Down

0 comments on commit 908c96a

Please sign in to comment.