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
This commit is contained in:
Callum Law 2025-05-23 11:02:06 +12:00 committed by Tim Flynn
commit 9dfce6d14c
Notes: github-actions[bot] 2025-05-23 14:28:35 +00:00

View file

@ -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)