Skip to content

Commit d953055

Browse files
authored
Add stacklevel=2 to make calling code clear
1 parent 4d00d50 commit d953055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setuptools/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def _wrapper(*args, **kwargs):
2525
to access a backward compatible API, but this module is provisional
2626
and might be removed in the future.
2727
"""
28-
warnings.warn(dedent(msg), SetuptoolsDeprecationWarning)
28+
warnings.warn(dedent(msg), SetuptoolsDeprecationWarning, stacklevel=2)
2929
return fn(*args, **kwargs)
3030

3131
return cast(Fn, _wrapper)

0 commit comments

Comments
 (0)