From d8e9b867560dafe1baa75356dbb65a177c74b6d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=C3=A1n=20Maureira-Fredes?= Date: Mon, 27 Jun 2022 19:52:27 +0200 Subject: build: fix flake8 warnings and missing f-strings Pick-to: 6.2 6.3 Change-Id: Ibd2a6088f6a2826be38a13037fe2db6656630b34 Reviewed-by: Friedemann Kleint --- build_scripts/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build_scripts/utils.py') diff --git a/build_scripts/utils.py b/build_scripts/utils.py index a99ef073b..0c69ba87c 100644 --- a/build_scripts/utils.py +++ b/build_scripts/utils.py @@ -136,11 +136,11 @@ def find_vcdir(version): # trying Express edition if productdir is None: try: - hasattr(msvc9, VSEXPRESS_BASE) + hasattr(msvc9, VSEXPRESS_BASE) # noqa: VSEXPRESS_BASE get defined with msvc9 except AttributeError: pass else: - vsbase = VSEXPRESS_BASE % version + vsbase = VSEXPRESS_BASE % version # noqa: VSEXPRESS_BASE get defined with msvc9 try: productdir = msvc9.Reg.get_value(rf"{vsbase}\Setup\VC", "productdir") except KeyError: -- cgit v1.2.3