BaseTools/UPT: Update the import statement to use StringUtils
The patch 5a57246eab
Rename String to StringUtils, but it didn't
update the UPT Tool for the import statement which cause UPT tool
break.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# This file is used to parse DEC file. It will consumed by DecParser
|
||||
#
|
||||
# Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials are licensed and made available
|
||||
# under the terms and conditions of the BSD License which accompanies this
|
||||
@ -57,10 +57,10 @@ from Object.Parser.DecObject import DecPcdObject
|
||||
from Object.Parser.DecObject import DecPcdItemObject
|
||||
from Library.Misc import GuidStructureStringToGuidString
|
||||
from Library.Misc import CheckGuidRegFormat
|
||||
from Library.String import ReplaceMacro
|
||||
from Library.String import GetSplitValueList
|
||||
from Library.String import gMACRO_PATTERN
|
||||
from Library.String import ConvertSpecialChar
|
||||
from Library.StringUtils import ReplaceMacro
|
||||
from Library.StringUtils import GetSplitValueList
|
||||
from Library.StringUtils import gMACRO_PATTERN
|
||||
from Library.StringUtils import ConvertSpecialChar
|
||||
from Library.CommentParsing import ParsePcdErrorCode
|
||||
|
||||
##
|
||||
|
@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# This file is used to provide method for process AsBuilt INF file. It will consumed by InfParser
|
||||
#
|
||||
# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials are licensed and made available
|
||||
# under the terms and conditions of the BSD License which accompanies this
|
||||
@ -23,7 +23,7 @@ import Logger.Log as Logger
|
||||
from Logger import StringTable as ST
|
||||
from Logger import ToolError
|
||||
|
||||
from Library.String import GetSplitValueList
|
||||
from Library.StringUtils import GetSplitValueList
|
||||
from Library.Misc import GetHelpStringByRemoveHashKey
|
||||
from Library.Misc import ValidFile
|
||||
from Library.Misc import ProcessLineExtender
|
||||
|
@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# This file contained the parser for INF file
|
||||
#
|
||||
# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials are licensed and made available
|
||||
# under the terms and conditions of the BSD License which accompanies this
|
||||
@ -23,8 +23,8 @@ import re
|
||||
import os
|
||||
from copy import deepcopy
|
||||
|
||||
from Library.String import GetSplitValueList
|
||||
from Library.String import ConvertSpecialChar
|
||||
from Library.StringUtils import GetSplitValueList
|
||||
from Library.StringUtils import ConvertSpecialChar
|
||||
from Library.Misc import ProcessLineExtender
|
||||
from Library.Misc import ProcessEdkComment
|
||||
from Library.Parsing import NormPath
|
||||
|
@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# This file contained the miscellaneous functions for INF parser
|
||||
#
|
||||
# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials are licensed and made available
|
||||
# under the terms and conditions of the BSD License which accompanies this
|
||||
@ -25,8 +25,8 @@ import re
|
||||
from Library import DataType as DT
|
||||
|
||||
|
||||
from Library.String import gMACRO_PATTERN
|
||||
from Library.String import ReplaceMacro
|
||||
from Library.StringUtils import gMACRO_PATTERN
|
||||
from Library.StringUtils import ReplaceMacro
|
||||
from Object.Parser.InfMisc import ErrorInInf
|
||||
from Logger.StringTable import ERR_MARCO_DEFINITION_MISS_ERROR
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# This file contained the parser for [Pcds] sections in INF file
|
||||
#
|
||||
# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials are licensed and made available
|
||||
# under the terms and conditions of the BSD License which accompanies this
|
||||
@ -26,7 +26,7 @@ from Library import DataType as DT
|
||||
from Library.Parsing import MacroParser
|
||||
from Library.Misc import GetSplitValueList
|
||||
from Library import GlobalData
|
||||
from Library.String import SplitPcdEntry
|
||||
from Library.StringUtils import SplitPcdEntry
|
||||
from Parser.InfParserMisc import InfParserSectionRoot
|
||||
|
||||
class InfPcdSectionParser(InfParserSectionRoot):
|
||||
|
@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# This file contained the parser for sections in INF file
|
||||
#
|
||||
# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials are licensed and made available
|
||||
# under the terms and conditions of the BSD License which accompanies this
|
||||
@ -21,7 +21,7 @@ InfSectionParser
|
||||
from copy import deepcopy
|
||||
import re
|
||||
|
||||
from Library.String import GetSplitValueList
|
||||
from Library.StringUtils import GetSplitValueList
|
||||
from Library.CommentParsing import ParseHeaderCommentSection
|
||||
from Library.CommentParsing import ParseComment
|
||||
|
||||
|
Reference in New Issue
Block a user