summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Schreiner <HenrySchreinerIII@gmail.com>2023-03-21 02:55:52 -0700
committerGitHub <noreply@github.com>2023-03-21 11:55:52 +0200
commit27b3d22dd3aca9fda0b79b68f2879788a8a6878b (patch)
treeff3a8a4eccc80518c263b4c2f02955b5b2ce0c5b
parent948c25837a94bebd9bc512ac69fe463b31f96fff (diff)
downloadwheel-git-27b3d22dd3aca9fda0b79b68f2879788a8a6878b.tar.gz
Made the `stacklevel` arguments explicit (#522)
Makes B028 happy.
-rw-r--r--src/wheel/bdist_wheel.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wheel/bdist_wheel.py b/src/wheel/bdist_wheel.py
index 28a9050..cb9c19f 100644
--- a/src/wheel/bdist_wheel.py
+++ b/src/wheel/bdist_wheel.py
@@ -83,7 +83,7 @@ def get_flag(var, fallback, expected=True, warn=True):
"Config variable '{}' is unset, Python ABI tag may "
"be incorrect".format(var),
RuntimeWarning,
- 2,
+ stacklevel=2,
)
return fallback
return val == expected
@@ -473,6 +473,7 @@ class bdist_wheel(Command):
warnings.warn(
'The "license_file" option is deprecated. Use "license_files" instead.',
DeprecationWarning,
+ stacklevel=2,
)
files.add(metadata["license_file"][1])