]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Parser/InfBinarySectionParser.py
BaseTools: Remove equality operator with None
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Parser / InfBinarySectionParser.py
index f1d6943cbfff72c9892beab55de13e9d1a596f2b..f220402cb57723311faa6a8900143219d7ec391c 100644 (file)
@@ -112,7 +112,7 @@ class InfBinarySectionParser(InfParserSectionRoot):
             if BinLineContent.find(DT.TAB_COMMENT_SPLIT) > -1:\r
                 TailComments = BinLineContent[BinLineContent.find(DT.TAB_COMMENT_SPLIT):]\r
                 BinLineContent = BinLineContent[:BinLineContent.find(DT.TAB_COMMENT_SPLIT)]\r
-                if LineComment == None:\r
+                if LineComment is None:\r
                     LineComment = InfLineCommentObject()\r
                 LineComment.SetTailComments(TailComments)            \r
             \r
@@ -123,7 +123,7 @@ class InfBinarySectionParser(InfParserSectionRoot):
                                       FileName,\r
                                       DT.MODEL_EFI_BINARY_FILE,\r
                                       self.FileLocalMacros)\r
-            if MacroDef[0] != None:\r
+            if MacroDef[0] is not None:\r
                 SectionMacros[MacroDef[0]] = MacroDef[1]\r
                 LineComment = None\r
                 HeaderComments = []                   \r