Skip to content

Commit 99b3aa4

Browse files
Apply ruff/flynt rule FLY002
FLY002 Consider f-string instead of string join
1 parent c4c2926 commit 99b3aa4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/wheel/_bdist_wheel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def write_wheelfile(
473473
for impl in impl_tag.split("."):
474474
for abi in abi_tag.split("."):
475475
for plat in plat_tag.split("."):
476-
msg["Tag"] = "-".join((impl, abi, plat))
476+
msg["Tag"] = f"{impl}-{abi}-{plat}"
477477

478478
wheelfile_path = os.path.join(wheelfile_base, "WHEEL")
479479
log.info(f"creating {wheelfile_path}")

src/wheel/cli/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def wininst2wheel(path: str, dest_dir: str) -> None:
231231
# CPython-specific.
232232
if arch != "any":
233233
pyver = pyver.replace("py", "cp")
234-
wheel_name = "-".join((dist_info, pyver, abi, arch))
234+
wheel_name = f"{dist_info}-{pyver}-{abi}-{arch}"
235235
if root_is_purelib:
236236
bw = bdist_wheel(Distribution())
237237
else:

0 commit comments

Comments
 (0)