From 9dfce6d14c7a6a962df5d91f24124b32b2c34ba7 Mon Sep 17 00:00:00 2001 From: Callum Law Date: Fri, 23 May 2025 11:02:06 +1200 Subject: [PATCH] Meta: Avoid doublequote strings nested in fstrings in ladybird.py Double quote strings nested within double quoted-fstrings are invalid syntax prior to Python 3.12 and was causing an error when running ladybird.py --- Meta/ladybird.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Meta/ladybird.py b/Meta/ladybird.py index 61349d8f3c0..235d3d13c57 100755 --- a/Meta/ladybird.py +++ b/Meta/ladybird.py @@ -394,7 +394,7 @@ def build_main(build_dir: Path, target: str | None = None, args: list[str] = []) try: subprocess.check_call(build_args) except subprocess.CalledProcessError as e: - print_process_stderr(e, f"Unable to build Ladybird {f"target {target}" if target else "project"}") + print_process_stderr(e, f"Unable to build Ladybird {f'target {target}' if target else 'project'}") sys.exit(1) @@ -414,7 +414,7 @@ def test_main(build_dir: Path, preset: str, pattern: str | None): try: subprocess.check_call(test_args) except subprocess.CalledProcessError as e: - print_process_stderr(e, f"Unable to test Ladybird {f"pattern {pattern}" if pattern else "project"}") + print_process_stderr(e, f"Unable to test Ladybird {f'pattern {pattern}' if pattern else 'project'}") sys.exit(1)