]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Object/Parser/InfGuidObject.py
BaseTools: Remove equality operator with None
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Object / Parser / InfGuidObject.py
index 23125552e06d025ab0270ac1550913192e506b63..fb8d1f5a62eeabe626e934a6bbdf93afd3b69d15 100644 (file)
@@ -107,7 +107,7 @@ def ParseGuidComment(CommentsList, InfGuidItemObj):
     #\r
     # Get/Set Usage and HelpString\r
     #\r
-    if CommentsList != None and len(CommentsList) != 0 :\r
+    if CommentsList is not None and len(CommentsList) != 0 :\r
         CommentInsList = []\r
         PreUsage = None\r
         PreGuidType = None\r
@@ -126,7 +126,7 @@ def ParseGuidComment(CommentsList, InfGuidItemObj):
                                  [], \r
                                  True)\r
             \r
-            if CommentItemHelpText == None:\r
+            if CommentItemHelpText is None:\r
                 CommentItemHelpText = ''\r
                 if Count == len(CommentsList) and CommentItemUsage == CommentItemGuidType == DT.ITEM_UNDEFINED:\r
                     CommentItemHelpText = DT.END_OF_LINE\r
@@ -236,7 +236,7 @@ class InfGuidObject():
             #\r
             # Validate Arch\r
             #            \r
-            if (ArchItem == '' or ArchItem == None):\r
+            if (ArchItem == '' or ArchItem is None):\r
                 ArchItem = 'COMMON'  \r
             \r
             __SupportArchList.append(ArchItem)\r