Skip to content

Commit

Permalink
Made the stacklevel arguments explicit (#522)
Browse files Browse the repository at this point in the history
Makes B028 happy.
  • Loading branch information
henryiii committed Mar 21, 2023
1 parent 948c258 commit 27b3d22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wheel/bdist_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -473,6 +473,7 @@ def license_paths(self):
warnings.warn(
'The "license_file" option is deprecated. Use "license_files" instead.',
DeprecationWarning,
stacklevel=2,
)
files.add(metadata["license_file"][1])

Expand Down

0 comments on commit 27b3d22

Please sign in to comment.