Browse Source

Fix python 3 build in osx-specific platform

N0hbdy 8 years ago
parent
commit
a0c6fa68fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      platform/osx/detect.py

+ 1 - 1
platform/osx/detect.py

@@ -62,7 +62,7 @@ def configure(env):
 
     ## Compiler configuration
 
-    if (not os.environ.has_key("OSXCROSS_ROOT")): # regular native build
+    if "OSXCROSS_ROOT" not in os.environ: # regular native build
         if (env["bits"] == "fat"):
             env.Append(CCFLAGS=['-arch', 'i386', '-arch', 'x86_64'])
             env.Append(LINKFLAGS=['-arch', 'i386', '-arch', 'x86_64'])