diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2022-07-12 13:39:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-12 13:39:31 +0300 |
commit | d953055801c8d618c70cea81e3e35684122c66a7 (patch) | |
tree | 9f35646b3fab9d1a7eb7e66f7da7c6733ce443da | |
parent | 4d00d5091e0817f6e539c48f4afc2e69b8ac2591 (diff) | |
download | python-setuptools-git-d953055801c8d618c70cea81e3e35684122c66a7.tar.gz |
Add stacklevel=2 to make calling code clear
-rw-r--r-- | setuptools/config/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/config/__init__.py b/setuptools/config/__init__.py index 35458d8e..1a5153ad 100644 --- a/setuptools/config/__init__.py +++ b/setuptools/config/__init__.py @@ -25,7 +25,7 @@ def _deprecation_notice(fn: Fn) -> Fn: 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) |