From c067d2cb7e5ee49147b3bd7dbbf755c52489096f Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 20 Jul 2023 15:04:39 +0200 Subject: [PATCH] Fix Python lint error by using an f-string (#2886) --- gyp/pylib/gyp/generator/make.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gyp/pylib/gyp/generator/make.py b/gyp/pylib/gyp/generator/make.py index f1d01a629d..05bb609d16 100644 --- a/gyp/pylib/gyp/generator/make.py +++ b/gyp/pylib/gyp/generator/make.py @@ -1991,11 +1991,8 @@ def WriteTarget( and "product_dir" not in spec and self.toolset == "target" ): - # On mac, products are created in install_path immediately. - assert install_path == self.output, "{} != {}".format( - install_path, - self.output, - ) + # On macOS, products are created in install_path immediately. + assert install_path == self.output, f"{install_path} != {self.output}" # Point the target alias to the final binary output. self.WriteMakeRule(