1
0
mirror of https://github.com/ARMmbed/mbedtls.git synced 2025-10-20 13:04:23 +08:00

Use f-string literal

This makes path-construction a bit more readable

Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
This commit is contained in:
Bence Szépkúti
2025-09-26 15:37:42 +02:00
parent effa534e71
commit dc88f6e1f3

View File

@@ -199,7 +199,7 @@ class AbiChecker:
otherwise update it to the default revision"""
submodule_output = subprocess.check_output(
[self.git_command, "submodule", "foreach", "--recursive",
'git worktree add --detach "{}/$displaypath" HEAD'.format(git_worktree_path)],
f'git worktree add --detach "{git_worktree_path}/$displaypath" HEAD'],
cwd=self.repo_path,
stderr=subprocess.STDOUT
)