]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Core/DependencyRules.py
BaseTools: Remove equality operator with None
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Core / DependencyRules.py
index 26c5a97da80fc16ca60eb8b7794b8fbf28093b92..2af847ed2e0bbcfaa28d59aa83891608ad24d423 100644 (file)
@@ -104,12 +104,12 @@ class DependencyRules(object):
             # check whether satisfied by current distribution \r
             #\r
             if not Exist:\r
-                if DpObj == None:\r
+                if DpObj is None:\r
                     Result = False\r
                     break\r
                 for GuidVerPair in DpObj.PackageSurfaceArea.keys():\r
                     if Dep.GetGuid() == GuidVerPair[0]:\r
-                        if Dep.GetVersion() == None or \\r
+                        if Dep.GetVersion() is None or \\r
                         len(Dep.GetVersion()) == 0:\r
                             Result = True\r
                             break\r