]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Object/Parser/InfGuidObject.py
BaseTools: Remove the deprecated hash_key()
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Object / Parser / InfGuidObject.py
index fb8d1f5a62eeabe626e934a6bbdf93afd3b69d15..4dfe75a2f16ac55bf8ae9e09ca10406bdd893752 100644 (file)
@@ -338,7 +338,7 @@ class InfGuidObject():
                                 #\r
                                 pass\r
                                                 \r
-            if self.Guids.has_key((InfGuidItemObj)):           \r
+            if (InfGuidItemObj) in self.Guids:\r
                 GuidList = self.Guids[InfGuidItemObj]                 \r
                 GuidList.append(InfGuidItemObj)\r
                 self.Guids[InfGuidItemObj] = GuidList\r
@@ -350,4 +350,4 @@ class InfGuidObject():
         return True\r
     \r
     def GetGuid(self):\r
-        return self.Guids
\ No newline at end of file
+        return self.Guids\r