]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Object/Parser/InfDefineObject.py
BaseTools: Remove the deprecated hash_key()
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Object / Parser / InfDefineObject.py
index bbc797f65e3783ef0977c4172a3d0ddb263aca6f..9d27a92cd6b0e3d3fe76b5b70e27907720d50fbe 100644 (file)
@@ -2,7 +2,7 @@
 # This file is used to define class objects of [Defines] section for INF file. \r
 # It will consumed by InfParser\r
 #\r
-# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 # This program and the accompanying materials are licensed and made available \r
 # under the terms and conditions of the BSD License which accompanies this \r
@@ -23,7 +23,7 @@ from Logger import StringTable as ST
 from Logger import ToolError\r
 from Library import GlobalData \r
 from Library import DataType as DT\r
-from Library.String import GetSplitValueList\r
+from Library.StringUtils import GetSplitValueList\r
 from Library.Misc import CheckGuidRegFormat\r
 from Library.Misc import Sdict\r
 from Library.Misc import ConvPathFromAbsToRel\r
@@ -957,7 +957,7 @@ class InfDefObject(InfSectionCommonDef):
                     SpecValue = Name[Name.find("SPEC") + len("SPEC"):].strip()\r
                     Name = "SPEC"\r
                     Value = SpecValue + " = " + Value\r
-                if self.Defines.has_key(ArchListString):\r
+                if ArchListString in self.Defines:\r
                     DefineList = self.Defines[ArchListString]                 \r
                     LineInfo[0] = InfDefMemberObj.CurrentLine.GetFileName()\r
                     LineInfo[1] = InfDefMemberObj.CurrentLine.GetLineNo()\r