]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Object/Parser/InfMisc.py
BaseTools: Remove the deprecated hash_key()
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Object / Parser / InfMisc.py
index 37f8cb2336bb6759406105874ee6fd4b013ac397..4ed739d66fb2762649b19a77387e86ca2ba471bf 100644 (file)
@@ -114,7 +114,7 @@ class InfSpecialCommentObject(InfSectionCommonDef):
            Type == DT.TYPE_EVENT_SECTION or \\r
            Type == DT.TYPE_BOOTMODE_SECTION:\r
             for Item in SepcialSectionList:\r
-                if self.SpecialComments.has_key(Type):           \r
+                if Type in self.SpecialComments:\r
                     ObjList = self.SpecialComments[Type]\r
                     ObjList.append(Item)\r
                     self.SpecialComments[Type] = ObjList\r
@@ -145,4 +145,4 @@ def ErrorInInf(Message=None, ErrorCode=None, LineInfo=None, RaiseError=True):
                  File=LineInfo[0], \r
                  Line=LineInfo[1],\r
                  ExtraData=LineInfo[2], \r
-                 RaiseError=RaiseError)
\ No newline at end of file
+                 RaiseError=RaiseError)\r