Explorar o código

Windows: Fix build with SCons 4.2.0

(cherry picked from commit c191cfbddfa2f26b22f8c3edbc529342cd2fe2e2)
Rémi Verschelde %!s(int64=4) %!d(string=hai) anos
pai
achega
c717c97819
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      platform/windows/detect.py

+ 1 - 1
platform/windows/detect.py

@@ -149,7 +149,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