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/Common/Misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BaseTools/Source/Python/Common/Misc.py') diff --git a/BaseTools/Source/Python/Common/Misc.py b/BaseTools/Source/Python/Common/Misc.py index 01bd62a9e2..2ef8e07839 100644 --- a/BaseTools/Source/Python/Common/Misc.py +++ b/BaseTools/Source/Python/Common/Misc.py @@ -1180,7 +1180,7 @@ def ParseFieldValue (Value): if Value[0] == '"' and Value[-1] == '"': Value = Value[1:-1] try: - Value = "'" + uuid.UUID(Value).get_bytes_le() + "'" + Value = "'" + uuid.UUID(Value).bytes_le + "'" except ValueError as Message: raise BadExpression(Message) Value, Size = ParseFieldValue(Value) -- cgit v1.2.3