# 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
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
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