Skip to content

Commit

Permalink
Add stacklevel=2 to make calling code clear
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Jul 12, 2022
1 parent 4d00d50 commit d953055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setuptools/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _wrapper(*args, **kwargs):
to access a backward compatible API, but this module is provisional
and might be removed in the future.
"""
warnings.warn(dedent(msg), SetuptoolsDeprecationWarning)
warnings.warn(dedent(msg), SetuptoolsDeprecationWarning, stacklevel=2)
return fn(*args, **kwargs)

return cast(Fn, _wrapper)
Expand Down

0 comments on commit d953055

Please sign in to comment.