]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Object/Parser/InfSoucesObject.py
BaseTools: Remove the deprecated hash_key()
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Object / Parser / InfSoucesObject.py
index 2302dd5b96734f9e5733e1bc9d874b6ecd401d04..285e89aacbfc2558f0979330a84e62386d3ebde2 100644 (file)
@@ -224,7 +224,7 @@ class InfSourcesObject(InfSectionCommonDef):
                 \r
             ItemObj.SetSupArchList(__SupArchList) \r
                                                                                                       \r
-            if self.Sources.has_key((ItemObj)):           \r
+            if (ItemObj) in self.Sources:\r
                 SourceContent = self.Sources[ItemObj]\r
                 SourceContent.append(ItemObj)\r
                 self.Sources[ItemObj] = SourceContent\r
@@ -237,4 +237,3 @@ class InfSourcesObject(InfSectionCommonDef):
      \r
     def GetSources(self):\r
         return self.Sources\r
-    
\ No newline at end of file