Skip to content

Commit ee3f7a8

Browse files
authored
Merge pull request #4791 from lexming/fix-fstrings-extractcmd
fix f-strings in `filetools.extract_cmd`
2 parents 54922c9 + 130c612 commit ee3f7a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

easybuild/tools/filetools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,13 +493,13 @@ def extract_file(fn, dest, cmd=None, extra_options=None, overwrite=False, forced
493493
if cmd:
494494
# complete command template with filename
495495
cmd = cmd % fn
496-
_log.debug("Using specified command to unpack {fn}: {cmd}")
496+
_log.debug(f"Using specified command to unpack {fn}: {cmd}")
497497
else:
498498
cmd = extract_cmd(fn, overwrite=overwrite)
499-
_log.debug("Using command derived from file extension to unpack {fn}: {cmd}")
499+
_log.debug(f"Using command derived from file extension to unpack {fn}: {cmd}")
500500

501501
if not cmd:
502-
raise EasyBuildError("Can't extract file {fn} with unknown filetype")
502+
raise EasyBuildError(f"Can't extract file {fn} with unknown filetype")
503503

504504
if extra_options:
505505
cmd = f"{cmd} {extra_options}"

0 commit comments

Comments
 (0)