#\r
# If Xdr flag is not set, then concatenate all the data\r
#\r
- Buffer = b''.join (Buffer)\r
+ Buffer = bytearray (b''.join (Buffer))\r
#\r
# Return a PCD value of the form '{0x01, 0x02, ...}' along with the PCD length in bytes\r
#\r
- return '{' + (', '.join (['0x{Byte:02X}'.format (Byte = Item) for Item in Buffer])) + '}', len (Buffer)\r
+ PcdValue = '{' + ', '.join (['0x{Byte:02X}'.format (Byte = Item) for Item in Buffer]) + '}'\r
+ return PcdValue.encode (), len (Buffer)\r
\r
#\r
# Create command line argument parser object\r