diff options
author | Feng, Bob C <bob.c.feng@intel.com> | 2019-02-16 23:33:35 +0800 |
---|---|---|
committer | Feng, Bob C <bob.c.feng@intel.com> | 2019-02-19 20:32:43 +0800 |
commit | 97f003236f417947a5675de709c3d1869cd54584 (patch) | |
tree | 6bfcdf914f4c8fe12952b11913e7978f0ba62ba8 /BaseTools/Source/Python/Common | |
parent | 7b6a8c9cf2a0c270565108e1bf4e79cc6468fb6f (diff) | |
download | edk2-97f003236f417947a5675de709c3d1869cd54584.tar.gz edk2-97f003236f417947a5675de709c3d1869cd54584.tar.bz2 edk2-97f003236f417947a5675de709c3d1869cd54584.zip |
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 <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Common')
-rw-r--r-- | BaseTools/Source/Python/Common/Misc.py | 1 |
1 files changed, 1 insertions, 0 deletions
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
|