From d06cc042eb21bc16a4a5cc957a3615e5e3a9743a Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 8 Jul 2021 00:06:10 -0400 Subject: f-strings --- mesonbuild/mesonlib/universal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mesonbuild/mesonlib/universal.py') diff --git a/mesonbuild/mesonlib/universal.py b/mesonbuild/mesonlib/universal.py index 9cf1cf0..9dffdca 100644 --- a/mesonbuild/mesonlib/universal.py +++ b/mesonbuild/mesonlib/universal.py @@ -1467,8 +1467,8 @@ def _substitute_values_check_errors(command: T.List[str], values: T.Dict[str, T. # Error out if any output-derived templates are present in the command match = iter_regexin_iter(outregex, command) if match: - m = 'Command cannot have {!r} since there are no outputs' - raise MesonException(m.format(match)) + m = f'Command cannot have {match!r} since there are no outputs' + raise MesonException(m) else: # Error out if an invalid @OUTPUTnn@ template was specified for each in command: -- cgit v1.1