Skip to content

Commit

Permalink
Apply ruff/flynt rule FLY002
Browse files Browse the repository at this point in the history
FLY002 Consider f-string instead of string join
  • Loading branch information
DimitriPapadopoulos committed Aug 24, 2024
1 parent c4c2926 commit 99b3aa4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/wheel/_bdist_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def write_wheelfile(
for impl in impl_tag.split("."):
for abi in abi_tag.split("."):
for plat in plat_tag.split("."):
msg["Tag"] = "-".join((impl, abi, plat))
msg["Tag"] = f"{impl}-{abi}-{plat}"

wheelfile_path = os.path.join(wheelfile_base, "WHEEL")
log.info(f"creating {wheelfile_path}")
Expand Down
2 changes: 1 addition & 1 deletion src/wheel/cli/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def wininst2wheel(path: str, dest_dir: str) -> None:
# CPython-specific.
if arch != "any":
pyver = pyver.replace("py", "cp")
wheel_name = "-".join((dist_info, pyver, abi, arch))
wheel_name = f"{dist_info}-{pyver}-{abi}-{arch}"
if root_is_purelib:
bw = bdist_wheel(Distribution())
else:
Expand Down

0 comments on commit 99b3aa4

Please sign in to comment.