X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FUPT%2FLibrary%2FParserValidate.py;fp=BaseTools%2FSource%2FPython%2FUPT%2FLibrary%2FParserValidate.py;h=87d156fa4ce166f7056f839bbda40de38b5c3c95;hp=31b9b68cd57e70dde6fa3cfd3929364057f416b0;hb=174a9d3cc8f74f7a731ac5f16ce6864c8eb359ec;hpb=1590d12315b0dd1f348554149257b09ad23f3e67 diff --git a/BaseTools/Source/Python/UPT/Library/ParserValidate.py b/BaseTools/Source/Python/UPT/Library/ParserValidate.py index 31b9b68cd5..87d156fa4c 100644 --- a/BaseTools/Source/Python/UPT/Library/ParserValidate.py +++ b/BaseTools/Source/Python/UPT/Library/ParserValidate.py @@ -727,7 +727,7 @@ def IsValidUserId(UserId): # def CheckUTF16FileHeader(File): FileIn = open(File, 'rb').read(2) - if FileIn != '\xff\xfe': + if FileIn != b'\xff\xfe': return False return True