]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Parser/InfGuidPpiProtocolSectionParser.py
BaseTools: Remove equality operator with None
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Parser / InfGuidPpiProtocolSectionParser.py
index 12ffedaaec617e6376e2e6a71c9b5817a9eaf855..956c116c6e79536e8902c2bc257363ec02ae16fc 100644 (file)
@@ -77,7 +77,7 @@ class InfGuidPpiProtocolSectionParser(InfParserSectionRoot):
                                           FileName,\r
                                           DT.MODEL_EFI_GUID,\r
                                           self.FileLocalMacros)\r
-                if Name != None:\r
+                if Name is not None:\r
                     SectionMacros[Name] = Value\r
                     CommentsList = []\r
                     ValueList = []\r
@@ -164,7 +164,7 @@ class InfGuidPpiProtocolSectionParser(InfParserSectionRoot):
                                           FileName,\r
                                           DT.MODEL_EFI_PPI,\r
                                           self.FileLocalMacros)\r
-                if Name != None:\r
+                if Name is not None:\r
                     SectionMacros[Name] = Value\r
                     ValueList = []\r
                     CommentsList = []\r
@@ -334,7 +334,7 @@ class InfGuidPpiProtocolSectionParser(InfParserSectionRoot):
                                           FileName,\r
                                           DT.MODEL_EFI_PROTOCOL,\r
                                           self.FileLocalMacros)\r
-                if Name != None:\r
+                if Name is not None:\r
                     SectionMacros[Name] = Value\r
                     ValueList = []\r
                     CommentsList = []\r