Skip to content

Commit

Permalink
Apply ruff rule RUF027 (#355)
Browse files Browse the repository at this point in the history
RUF027 Possible f-string without an `f` prefix
  • Loading branch information
DimitriPapadopoulos authored and martinblech committed Oct 8, 2024
1 parent 6ae1ecc commit 4a0c401
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ez_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def archive_context(filename):
def _do_download(version, download_base, to_dir, download_delay):
"""Download Setuptools."""
py_desig = f'py{sys.version_info[0]}.{sys.version_info[1]}'
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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4a0c401

Please sign in to comment.