Re: [edk2] [patch] BaseTools/PatchCheck.py: Fix error when run with Python3

2018-09-05 Thread Carsey, Jaben
Reviewed-by: Jaben Carsey > -Original Message- > From: Bi, Dandan > Sent: Wednesday, September 05, 2018 12:21 AM > To: edk2-devel@lists.01.org > Cc: Gao, Liming ; Carsey, Jaben > ; Zhu, Yonghong > Subject: [patch] BaseTools/PatchCheck.py: Fix error when run with Python3 > Importance: Hig

[edk2] [patch] BaseTools/PatchCheck.py: Fix error when run with Python3

2018-09-05 Thread Dandan Bi
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 obj