]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Parser/InfLibrarySectionParser.py
BaseTools: Remove equality operator with None
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Parser / InfLibrarySectionParser.py
index 210f973f1a4d30a5b57c0cf1aa394da4e7a79d99..549e67f08d64fbef15c6c81d4a67b771d55bacd7 100644 (file)
@@ -96,7 +96,7 @@ class InfLibrarySectionParser(InfParserSectionRoot):
                 if LibLineContent.find(DT.TAB_COMMENT_SPLIT) > -1:\r
                     LibTailComments = LibLineContent[LibLineContent.find(DT.TAB_COMMENT_SPLIT):]\r
                     LibLineContent = LibLineContent[:LibLineContent.find(DT.TAB_COMMENT_SPLIT)]\r
-                    if LibLineComment == None:\r
+                    if LibLineComment is None:\r
                         LibLineComment = InfLineCommentObject()\r
                     LibLineComment.SetTailComments(LibTailComments)\r
 \r
@@ -107,7 +107,7 @@ class InfLibrarySectionParser(InfParserSectionRoot):
                                           FileName,\r
                                           DT.MODEL_EFI_LIBRARY_CLASS,\r
                                           self.FileLocalMacros)\r
-                if Name != None:\r
+                if Name is not None:\r
                     SectionMacros[Name] = Value\r
                     LibLineComment = None\r
                     LibHeaderComments = []\r