audk/BaseTools/Scripts
Dandan Bi 6460513aa6 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>
2018-09-06 13:41:35 +08:00
..
PackageDocumentTools BaseTools: Use absolute import in Scripts 2018-07-16 11:22:19 +08:00
BinToPcd.py BaseTools/BinToPcd: Open output file as text file 2018-08-06 10:48:35 +08:00
ConvertFceToStructurePcd.py BaseTools Script: Add the script to generate Structure PCD setting 2018-07-25 11:12:18 +08:00
ConvertMasmToNasm.py BaseTools ConvertMasmToNasm: Don't try to reconvert .nasm files 2016-06-28 13:16:53 -07:00
ConvertUni.py BaseTools: Replace StringIO.StringIO with io.BytesIO 2018-06-27 16:33:28 +08:00
FormatDosFiles.py BaseTools: Adjust the spaces around commas and colons 2018-06-27 16:33:25 +08:00
GccBase.lds BaseTools/Scripts: fix GccBase.lds line endings 2017-05-28 12:07:02 +00:00
MemoryProfileSymbolGen.py BaseTools: Clean up source files 2018-07-09 10:25:47 +08:00
PatchCheck.py BaseTools/PatchCheck.py: Fix error when run with Python3 2018-09-06 13:41:35 +08:00
RunMakefile.py BaseTools: Adjust the spaces around commas and colons 2018-06-27 16:33:25 +08:00
RunMakefileSample.mak BaseTools/Scripts: Add sample makefile for use with RunMakefile.py 2017-08-11 11:28:35 -07:00
Rvct-Align4K.sct
Rvct-Align32.sct
SetVisualStudio.bat
ShowEnvironment.bat
SmiHandlerProfileSymbolGen.py BaseTools: Refactor python print statements 2018-06-27 16:33:21 +08:00
UpdateBuildVersions.py BaseTools: Fix old python2 idioms 2018-06-27 16:33:27 +08:00