]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Fix a ParseDevPathValue function issue.
authorFeng, Bob C <bob.c.feng@intel.com>
Sat, 16 Feb 2019 15:33:35 +0000 (23:33 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Tue, 19 Feb 2019 12:32:43 +0000 (20:32 +0800)
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>
BaseTools/Source/Python/Common/Misc.py

index 565a5ad40b8c8b7586ba2f6c7a8afcfe6c5831e1..c7daf5417cdada9b6113467bfc4f3180dbf5536d 100644 (file)
@@ -1032,6 +1032,7 @@ def ParseFieldValue (Value):
             p.stderr.close()\r
         if err:\r
             raise BadExpression("DevicePath: %s" % str(err))\r
+        out = out.decode()\r
         Size = len(out.split())\r
         out = ','.join(out.split())\r
         return '{' + out + '}', Size\r