summaryrefslogtreecommitdiff
path: root/BaseTools
diff options
context:
space:
mode:
authorVitaly Cheptsov via Groups.Io <vit9696=protonmail.com@groups.io>2019-10-20 18:26:18 +0800
committerFeng, Bob C <bob.c.feng@intel.com>2019-10-23 14:25:23 +0800
commit5c7006c9de4029afc508e2c43d78de12a0d19cfe (patch)
tree0dd836c62743a39c7205e5e6f43604b589c3f9d4 /BaseTools
parent53b1dd1036df3839d46bb150f7a8b2037390093a (diff)
downloadedk2-5c7006c9de4029afc508e2c43d78de12a0d19cfe.zip
edk2-5c7006c9de4029afc508e2c43d78de12a0d19cfe.tar.gz
edk2-5c7006c9de4029afc508e2c43d78de12a0d19cfe.tar.bz2
BaseTools: Do not call sys.setdefaultencoding with python 3
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2301 This interface was a originally a no-op in python 3, and now is fully removed causing a build warning on macOS (Darwin). Signed-off-by: Vitaly Cheptsov <vit9696@protonmail.com>> Acked-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/Python/sitecustomize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/sitecustomize.py b/BaseTools/Source/Python/sitecustomize.py
index 7dbbf8a..50783e1 100644
--- a/BaseTools/Source/Python/sitecustomize.py
+++ b/BaseTools/Source/Python/sitecustomize.py
@@ -7,7 +7,7 @@
import sys
import locale
-if sys.platform == "darwin":
+if sys.platform == "darwin" and sys.version_info[0] < 3:
DefaultLocal = locale.getdefaultlocale()[1]
if DefaultLocal is None:
DefaultLocal = 'UTF8'