diff options
Diffstat (limited to 'BaseTools/Scripts/BinToPcd.py')
-rw-r--r-- | BaseTools/Scripts/BinToPcd.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/BaseTools/Scripts/BinToPcd.py b/BaseTools/Scripts/BinToPcd.py index 25b74f6004..1495a36933 100644 --- a/BaseTools/Scripts/BinToPcd.py +++ b/BaseTools/Scripts/BinToPcd.py @@ -70,7 +70,8 @@ if __name__ == '__main__': #
# Return a PCD value of the form '{0x01, 0x02, ...}' along with the PCD length in bytes
#
- return '{' + (', '.join (['0x{Byte:02X}'.format (Byte = Item) for Item in Buffer])) + '}', len (Buffer)
+ PcdValue = '{' + ', '.join (['0x{Byte:02X}'.format (Byte = Item) for Item in Buffer]) + '}'
+ return PcdValue.encode (), len (Buffer)
#
# Create command line argument parser object
|