From 97f003236f417947a5675de709c3d1869cd54584 Mon Sep 17 00:00:00 2001 From: "Feng, Bob C" Date: Sat, 16 Feb 2019 23:33:35 +0800 Subject: BaseTools: Fix a ParseDevPathValue function issue. In ParseDevPathValue, the binary data need to convert to string for python3 and python2 compatiblity. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng Cc: Liming Gao Reviewed-by: Liming Gao --- BaseTools/Source/Python/Common/Misc.py | 1 + 1 file changed, 1 insertion(+) (limited to 'BaseTools/Source/Python/Common/Misc.py') diff --git a/BaseTools/Source/Python/Common/Misc.py b/BaseTools/Source/Python/Common/Misc.py index 565a5ad40b..c7daf5417c 100644 --- a/BaseTools/Source/Python/Common/Misc.py +++ b/BaseTools/Source/Python/Common/Misc.py @@ -1032,6 +1032,7 @@ def ParseFieldValue (Value): p.stderr.close() if err: raise BadExpression("DevicePath: %s" % str(err)) + out = out.decode() Size = len(out.split()) out = ','.join(out.split()) return '{' + out + '}', Size -- cgit v1.2.3