From 0e3bfc6f7a2b7b52cb684736d878e249edbff5cb Mon Sep 17 00:00:00 2001 From: Yonghong Zhu Date: Wed, 26 Sep 2018 11:07:26 +0800 Subject: [PATCH] BaseTools: Rename get_bytes_le() to bytes_le Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yunhua Feng Reviewed-by: Liming Gao --- BaseTools/Source/Python/GenFds/CapsuleData.py | 2 +- BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BaseTools/Source/Python/GenFds/CapsuleData.py b/BaseTools/Source/Python/GenFds/CapsuleData.py index 651a16ec75..5f93734935 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 diff --git a/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py b/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py index 6cb235ae75..2f901a7f29 100644 --- a/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py +++ b/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py @@ -187,7 +187,7 @@ if __name__ == '__main__': # Write output file that contains hash GUID, Public Key, Signature, and Input data # args.OutputFile = open(args.OutputFileName, 'wb') - args.OutputFile.write(EFI_HASH_ALGORITHM_SHA256_GUID.get_bytes_le()) + args.OutputFile.write(EFI_HASH_ALGORITHM_SHA256_GUID.bytes_le) args.OutputFile.write(bytearray.fromhex(PublicKey)) args.OutputFile.write(Signature) args.OutputFile.write(args.InputFileBuffer) -- 2.39.2