X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FUPT%2FParser%2FInfPackageSectionParser.py;h=8fb2898826e6fff6d71a0339c8fd3e2d9876ec72;hp=67f1145322ad1799d22f78bd65c130008ca3ab77;hb=4231a8193ec0d52df7e0a101d96c51b1a2b7a996;hpb=05a32984ab799a564e2eeb7dff128fe0992910d8 diff --git a/BaseTools/Source/Python/UPT/Parser/InfPackageSectionParser.py b/BaseTools/Source/Python/UPT/Parser/InfPackageSectionParser.py index 67f1145322..8fb2898826 100644 --- a/BaseTools/Source/Python/UPT/Parser/InfPackageSectionParser.py +++ b/BaseTools/Source/Python/UPT/Parser/InfPackageSectionParser.py @@ -89,7 +89,7 @@ class InfPackageSectionParser(InfParserSectionRoot): if PkgLineContent.find(DT.TAB_COMMENT_SPLIT) > -1: TailComments = PkgLineContent[PkgLineContent.find(DT.TAB_COMMENT_SPLIT):] PkgLineContent = PkgLineContent[:PkgLineContent.find(DT.TAB_COMMENT_SPLIT)] - if LineComment == None: + if LineComment is None: LineComment = InfLineCommentObject() LineComment.SetTailComments(TailComments) # @@ -99,7 +99,7 @@ class InfPackageSectionParser(InfParserSectionRoot): FileName, DT.MODEL_META_DATA_PACKAGE, self.FileLocalMacros) - if Name != None: + if Name is not None: SectionMacros[Name] = Value LineComment = None HeaderComments = []