From 0c4495e5553b9ed44212321c5a970826649d2973 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Fri, 29 Jul 2022 13:22:18 +0200 Subject: [PATCH] =?UTF-8?q?[meson]=20Don=E2=80=99t=20use=20f-string?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It requires Python 3.6+ https://github.com/harfbuzz/harfbuzz/pull/3760#issuecomment-1198972788 --- src/gen-harfbuzzcc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gen-harfbuzzcc.py b/src/gen-harfbuzzcc.py index a0200a47c..53cc84859 100755 --- a/src/gen-harfbuzzcc.py +++ b/src/gen-harfbuzzcc.py @@ -17,7 +17,7 @@ CURRENT_SOURCE_DIR = Path (sys.argv[2]) sources = [Path(x) for x in sorted(set(sys.argv[3:]))] with open (OUTPUT, "wb") as f: - f.write ("".join (f'#include "{p.resolve ().relative_to (CURRENT_SOURCE_DIR)}"\n' for p in sources if p.suffix == ".cc").encode ()) + f.write ("".join ('#include "{}"\n'.format (p.resolve ().relative_to (CURRENT_SOURCE_DIR)) for p in sources if p.suffix == ".cc").encode ()) # copy it also to the source tree, but only if it has changed baseline = CURRENT_SOURCE_DIR / OUTPUT.name