From e16f264a7e0bec6acd07284a1fc9c256fc483368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sun, 1 Aug 2021 10:08:20 +0200 Subject: [PATCH] Windows: Fix build with SCons 4.2.0 (cherry picked from commit c191cfbddfa2f26b22f8c3edbc529342cd2fe2e2) --- platform/windows/detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/windows/detect.py b/platform/windows/detect.py index d1d9178ccc..b335ea6670 100644 --- a/platform/windows/detect.py +++ b/platform/windows/detect.py @@ -139,7 +139,7 @@ def setup_msvc_auto(env): env['TARGET_ARCH'] = None if env['bits'] != 'default': env['TARGET_ARCH'] = {'32': 'x86', '64': 'x86_64'}[env['bits']] - if env.has_key('msvc_version'): + if 'msvc_version' in env: env['MSVC_VERSION'] = env['msvc_version'] env.Tool('msvc') env.Tool('mssdk') # we want the MS SDK