From 5bd1792a4672caad45aed1cf4c3c3e04d78d2804 Mon Sep 17 00:00:00 2001 From: Alex Domingo Date: Tue, 4 Mar 2025 21:35:20 +0100 Subject: [PATCH] fix f-string in filetools.extract_cmd --- easybuild/tools/filetools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/easybuild/tools/filetools.py b/easybuild/tools/filetools.py index 88859f8b59..fc813b2a8a 100644 --- a/easybuild/tools/filetools.py +++ b/easybuild/tools/filetools.py @@ -493,13 +493,13 @@ def extract_file(fn, dest, cmd=None, extra_options=None, overwrite=False, forced if cmd: # complete command template with filename cmd = cmd % fn - _log.debug("Using specified command to unpack {fn}: {cmd}") + _log.debug(f"Using specified command to unpack {fn}: {cmd}") else: cmd = extract_cmd(fn, overwrite=overwrite) - _log.debug("Using command derived from file extension to unpack {fn}: {cmd}") + _log.debug(f"Using command derived from file extension to unpack {fn}: {cmd}") if not cmd: - raise EasyBuildError("Can't extract file {fn} with unknown filetype") + raise EasyBuildError(f"Can't extract file {fn} with unknown filetype") if extra_options: cmd = f"{cmd} {extra_options}"