* [PATCH v1] BaseTools: Remove sitecustomize module
@ 2018-10-13 20:52 Alex James
0 siblings, 0 replies; only message in thread
From: Alex James @ 2018-10-13 20:52 UTC (permalink / raw)
To: edk2-devel; +Cc: Yonghong Zhu, Liming Gao
The sitecustomize module in BaseTools was used to set the default text
encoding on macOS systems. Setting the default system encoding is
unsupported in Python 3, so remove the sitecustomize module.
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Alex James <theracermaster@gmail.com>
---
BaseTools/Source/Python/sitecustomize.py | 21 --------------------
1 file changed, 21 deletions(-)
diff --git a/BaseTools/Source/Python/sitecustomize.py b/BaseTools/Source/Python/sitecustomize.py
deleted file mode 100644
index 3afa90700e..0000000000
--- a/BaseTools/Source/Python/sitecustomize.py
+++ /dev/null
@@ -1,21 +0,0 @@
-## @file
-#
-#
-# Copyright (c) 2009 - 2014, Apple Inc. All rights reserved.<BR>
-#
-# This program and the accompanying materials
-# are licensed and made available under the terms and conditions of the BSD License
-# which accompanies this distribution. The full text of the license may be found at
-# http://opensource.org/licenses/bsd-license.php
-#
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-import sys
-import locale
-
-if sys.platform == "darwin":
- DefaultLocal = locale.getdefaultlocale()[1]
- if DefaultLocal is None:
- DefaultLocal = 'UTF8'
- sys.setdefaultencoding(DefaultLocal)
-
--
2.19.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-10-13 20:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-13 20:52 [PATCH v1] BaseTools: Remove sitecustomize module Alex James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox