summaryrefslogtreecommitdiff
path: root/platform/osx/detect.py
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-08-28 00:05:15 +0200
committerGitHub <noreply@github.com>2017-08-28 00:05:15 +0200
commit6ef7783abb4ea31e6c59b4c30a05c7249b361020 (patch)
treeb892ac9d40915b782d130d09b15eb3e6c4b8e8c7 /platform/osx/detect.py
parentd23f323cde8a1664d587b4fed1b8683be479ff40 (diff)
parentb6e1e47e3a92c1b94ef327149068a8a147fc73f5 (diff)
Merge pull request #10662 from hoelzl/python3-v3
Make build scripts Python 3 compatible
Diffstat (limited to 'platform/osx/detect.py')
-rw-r--r--platform/osx/detect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/osx/detect.py b/platform/osx/detect.py
index 661da6e7c1..d3ebdfe992 100644
--- a/platform/osx/detect.py
+++ b/platform/osx/detect.py
@@ -12,7 +12,7 @@ def get_name():
def can_build():
- if (sys.platform == "darwin" or os.environ.has_key("OSXCROSS_ROOT")):
+ if (sys.platform == "darwin" or ("OSXCROSS_ROOT" in os.environ)):
return True
return False