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=31b9b68cd57e70dde6fa3cfd3929364057f416b0;hp=87d156fa4ce166f7056f839bbda40de38b5c3c95;hb=1ccc4d895dd8d659d016efcd6ef8a48749aba1d0;hpb=678f85131238622e576705117e299d81cff755c9 diff --git a/BaseTools/Source/Python/UPT/Library/ParserValidate.py b/BaseTools/Source/Python/UPT/Library/ParserValidate.py index 87d156fa4c..31b9b68cd5 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 != b'\xff\xfe': + if FileIn != '\xff\xfe': return False return True