X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2Fsitecustomize.py;fp=BaseTools%2FSource%2FPython%2Fsitecustomize.py;h=50783e1b3af0645d2f861d543aa0887014ef5981;hb=5c7006c9de4029afc508e2c43d78de12a0d19cfe;hp=7dbbf8a232ab19ed1bbec719d6f327940ee9e5a9;hpb=53b1dd1036df3839d46bb150f7a8b2037390093a;p=mirror_edk2.git diff --git a/BaseTools/Source/Python/sitecustomize.py b/BaseTools/Source/Python/sitecustomize.py index 7dbbf8a232..50783e1b3a 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'