From 99b3aa4c10f3bac6c86350fe04f67c18a8e835aa Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sat, 24 Aug 2024 23:08:09 +0300 Subject: [PATCH] Apply ruff/flynt rule FLY002 FLY002 Consider f-string instead of string join --- src/wheel/_bdist_wheel.py | 2 +- src/wheel/cli/convert.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wheel/_bdist_wheel.py b/src/wheel/_bdist_wheel.py index 3cc7165e..55ffa5ce 100644 --- a/src/wheel/_bdist_wheel.py +++ b/src/wheel/_bdist_wheel.py @@ -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}") diff --git a/src/wheel/cli/convert.py b/src/wheel/cli/convert.py index 157a4a80..fc7f6e5b 100644 --- a/src/wheel/cli/convert.py +++ b/src/wheel/cli/convert.py @@ -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: