diff options
author | Vitaly Cheptsov via Groups.Io <vit9696=protonmail.com@groups.io> | 2019-10-20 18:26:18 +0800 |
---|---|---|
committer | Feng, Bob C <bob.c.feng@intel.com> | 2019-10-23 14:25:23 +0800 |
commit | 5c7006c9de4029afc508e2c43d78de12a0d19cfe (patch) | |
tree | 0dd836c62743a39c7205e5e6f43604b589c3f9d4 /BaseTools/Source | |
parent | 53b1dd1036df3839d46bb150f7a8b2037390093a (diff) | |
download | edk2-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/Source')
-rw-r--r-- | BaseTools/Source/Python/sitecustomize.py | 2 |
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'
|