From 00f86d89ab7039922904d16b499e71aa34f99545 Mon Sep 17 00:00:00 2001 From: Zhijux Fan Date: Wed, 28 Nov 2018 11:12:37 +0800 Subject: BaseTools: replace get_bytes_le() to bytes_le UUID does not have the get_bytes_le() in python3 Cc: Bob Feng Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan Tested-by: Laszlo Ersek Tested-by: Ard Biesheuvel Reviewed-by: Liming Gao Reviewed-by: Bob Feng --- BaseTools/Source/Python/GenFds/CapsuleData.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BaseTools/Source/Python/GenFds/CapsuleData.py') diff --git a/BaseTools/Source/Python/GenFds/CapsuleData.py b/BaseTools/Source/Python/GenFds/CapsuleData.py index 6071e9f4a5..db201c074b 100644 --- a/BaseTools/Source/Python/GenFds/CapsuleData.py +++ b/BaseTools/Source/Python/GenFds/CapsuleData.py @@ -229,7 +229,7 @@ class CapsulePayload(CapsuleData): ) if AuthData: Buffer += pack('QIHH', AuthData[0], AuthData[1], AuthData[2], AuthData[3]) - Buffer += uuid.UUID(AuthData[4]).get_bytes_le() + Buffer += uuid.UUID(AuthData[4]).bytes_le # # Append file content to the structure -- cgit v1.2.3