]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/CapsuleData.py
BaseTools: Handle the bytes and str difference
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / CapsuleData.py
index 651a16ec753a3c0098ad1318174aa50539cb2714..ace4699a0e100fbdb6cbf514679928e7704ec650 100644 (file)
@@ -15,7 +15,7 @@
 ##\r
 # Import Modules\r
 #\r
-from . import Ffs\r
+from __future__ import absolute_import\r
 from .GenFdsGlobalVariable import GenFdsGlobalVariable\r
 from io import BytesIO\r
 from struct import pack\r
@@ -229,7 +229,7 @@ class CapsulePayload(CapsuleData):
                        )\r
         if AuthData:\r
             Buffer += pack('QIHH', AuthData[0], AuthData[1], AuthData[2], AuthData[3])\r
-            Buffer += uuid.UUID(AuthData[4]).get_bytes_le()\r
+            Buffer += uuid.UUID(AuthData[4]).bytes_le\r
 \r
         #\r
         # Append file content to the structure\r