commit | 6460513aa66893f486fb6285493a5033a2349df3 | [log] [tgz] |
---|---|---|
author | Dandan Bi <dandan.bi@intel.com> | Wed Sep 05 14:58:07 2018 +0800 |
committer | Liming Gao <liming.gao@intel.com> | Thu Sep 06 13:41:35 2018 +0800 |
tree | 8e50e516bc2f42bde90cb94238c6ea56ccb96464 | |
parent | 4a76d9b9a33783c9a8bd4a77df5427522292586c [diff] |
BaseTools/PatchCheck.py: Fix error when run with Python3 REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1145 Currently run PatchCheck.py with Python3 will meet following error: ..... File "PatchCheck.py", line 554, in run_git return Result[0].decode('utf-8', 'ignore') if Result[0] and Result[0].find("fatal")!=0 else None TypeError: a bytes-like object is required, not 'str' This issue was introduce by commit:5ac4548cdf654. This patch is to convert the str object of "fatal" to byte object to fix this failure. Cc: Liming Gao <liming.gao@intel.com> Cc: Jaben Carsey <jaben.carsey@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
A modern, feature-rich, cross-platform firmware development environment for the UEFI and PI specifications from www.uefi.org.
Contributions to the EDK II open source project are covered by the TianoCore Contribution Agreement 1.1
The majority of the content in the EDK II open source project uses a BSD 2-Clause License. The EDK II open source project contains the following components that are covered by additional licenses:
The EDK II Project is composed of packages. The maintainers for each package are listed in Maintainers.txt.