From 1ab011d9b0741a56f0faedbf5ece1412aa897fa4 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sat, 5 Oct 2024 13:55:30 +0200 Subject: [PATCH] Apply ruff rule RUF027 RUF027 Possible f-string without an `f` prefix --- ez_setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ez_setup.py b/ez_setup.py index 057dc84..1127043 100644 --- a/ez_setup.py +++ b/ez_setup.py @@ -132,7 +132,7 @@ def archive_context(filename): def _do_download(version, download_base, to_dir, download_delay): """Download Setuptools.""" py_desig = 'py{sys.version_info[0]}.{sys.version_info[1]}'.format(sys=sys) - tp = 'setuptools-{version}-{py_desig}.egg' + tp = f'setuptools-{version}-{py_desig}.egg' egg = os.path.join(to_dir, tp.format(**locals())) if not os.path.exists(egg): archive = download_setuptools(version, download_base, @@ -193,7 +193,7 @@ def _conflict_bail(VC_err, version): Setuptools was imported prior to invocation, so it is unsafe to unload it. Bail out. """ - conflict_tmpl = textwrap.dedent(""" + conflict_tmpl = textwrap.dedent(f""" The required version of setuptools (>={version}) is not available, and can't be installed while this script is running. Please install a more recent version first, using