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:
Yonghong Zhu 2018-06-07 13:06:44 +08:00
parent a05a8a5aa1
commit 64285f1526
27 changed files with 79 additions and 79 deletions

View File

@ -2,7 +2,7 @@
# #
# This file contained the logical of transfer package object to DEC files. # This file contained the logical of transfer package object to DEC files.
# #
# 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -65,7 +65,7 @@ from Library.DataType import TAB_SECTION_END
from Library.DataType import TAB_SPLIT from Library.DataType import TAB_SPLIT
import Library.DataType as DT import Library.DataType as DT
from Library.UniClassObject import FormatUniEntry from Library.UniClassObject import FormatUniEntry
from Library.String import GetUniFileName from Library.StringUtils import GetUniFileName
def GenPcd(Package, Content): def GenPcd(Package, Content):
# #

View File

@ -2,7 +2,7 @@
# #
# This file contained the logical of transfer package object to INF files. # This file contained the logical of transfer package object to INF files.
# #
# Copyright (c) 2011 - 2017, 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -20,7 +20,7 @@ import stat
import codecs import codecs
import md5 import md5
from Core.FileHook import __FileHookOpen__ from Core.FileHook import __FileHookOpen__
from Library.String import GetSplitValueList from Library.StringUtils import GetSplitValueList
from Library.Parsing import GenSection from Library.Parsing import GenSection
from Library.Parsing import GetWorkspacePackage from Library.Parsing import GetWorkspacePackage
from Library.Parsing import ConvertArchForInstall from Library.Parsing import ConvertArchForInstall
@ -41,7 +41,7 @@ import Logger.Log as Logger
from Library import DataType as DT from Library import DataType as DT
from GenMetaFile import GenMetaFileMisc from GenMetaFile import GenMetaFileMisc
from Library.UniClassObject import FormatUniEntry from Library.UniClassObject import FormatUniEntry
from Library.String import GetUniFileName from Library.StringUtils import GetUniFileName
## Transfer Module Object to Inf files ## Transfer Module Object to Inf files

View File

@ -1,7 +1,7 @@
## @file ## @file
# This file is used to define comment generating interface # This file is used to define comment generating interface
# #
# 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -19,7 +19,7 @@ CommentGenerating
## ##
# Import Modules # Import Modules
# #
from Library.String import GetSplitValueList from Library.StringUtils import GetSplitValueList
from Library.DataType import TAB_SPACE_SPLIT from Library.DataType import TAB_SPACE_SPLIT
from Library.DataType import TAB_INF_GUIDTYPE_VAR from Library.DataType import TAB_INF_GUIDTYPE_VAR
from Library.DataType import USAGE_ITEM_NOTIFY from Library.DataType import USAGE_ITEM_NOTIFY

View File

@ -1,7 +1,7 @@
## @file ## @file
# This file is used to define comment parsing interface # This file is used to define comment parsing interface
# #
# 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -21,8 +21,8 @@ CommentParsing
# #
import re import re
from Library.String import GetSplitValueList from Library.StringUtils import GetSplitValueList
from Library.String import CleanString2 from Library.StringUtils import CleanString2
from Library.DataType import HEADER_COMMENT_NOT_STARTED from Library.DataType import HEADER_COMMENT_NOT_STARTED
from Library.DataType import TAB_COMMENT_SPLIT from Library.DataType import TAB_COMMENT_SPLIT
from Library.DataType import HEADER_COMMENT_LICENSE from Library.DataType import HEADER_COMMENT_LICENSE

View File

@ -1,7 +1,7 @@
## @file ## @file
# Common routines used by all tools # Common routines used by all tools
# #
# 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -45,7 +45,7 @@ from Library.DataType import TAB_LANGUAGE_EN_US
from Library.DataType import TAB_LANGUAGE_EN from Library.DataType import TAB_LANGUAGE_EN
from Library.DataType import TAB_LANGUAGE_EN_X from Library.DataType import TAB_LANGUAGE_EN_X
from Library.DataType import TAB_UNI_FILE_SUFFIXS from Library.DataType import TAB_UNI_FILE_SUFFIXS
from Library.String import GetSplitValueList from Library.StringUtils import GetSplitValueList
from Library.ParserValidate import IsValidHexVersion from Library.ParserValidate import IsValidHexVersion
from Library.ParserValidate import IsValidPath from Library.ParserValidate import IsValidPath
from Object.POM.CommonObject import TextObject from Object.POM.CommonObject import TextObject

View File

@ -1,7 +1,7 @@
## @file ParserValidate.py ## @file ParserValidate.py
# Functions for parser validation # Functions for parser validation
# #
# 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -24,7 +24,7 @@ from Library.DataType import MODULE_LIST
from Library.DataType import COMPONENT_TYPE_LIST from Library.DataType import COMPONENT_TYPE_LIST
from Library.DataType import PCD_USAGE_TYPE_LIST_OF_MODULE from Library.DataType import PCD_USAGE_TYPE_LIST_OF_MODULE
from Library.DataType import TAB_SPACE_SPLIT from Library.DataType import TAB_SPACE_SPLIT
from Library.String import GetSplitValueList from Library.StringUtils import GetSplitValueList
from Library.ExpressionValidate import IsValidBareCString from Library.ExpressionValidate import IsValidBareCString
from Library.ExpressionValidate import IsValidFeatureFlagExp from Library.ExpressionValidate import IsValidFeatureFlagExp
from Common.MultipleWorkspace import MultipleWorkspace as mws from Common.MultipleWorkspace import MultipleWorkspace as mws

View File

@ -2,7 +2,7 @@
# This file is used to define common parsing related functions used in parsing # This file is used to define common parsing related functions used in parsing
# INF/DEC/DSC process # INF/DEC/DSC process
# #
# 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -23,12 +23,12 @@ Parsing
import os.path import os.path
import re import re
from Library.String import RaiseParserError from Library.StringUtils import RaiseParserError
from Library.String import GetSplitValueList from Library.StringUtils import GetSplitValueList
from Library.String import CheckFileType from Library.StringUtils import CheckFileType
from Library.String import CheckFileExist from Library.StringUtils import CheckFileExist
from Library.String import CleanString from Library.StringUtils import CleanString
from Library.String import NormPath from Library.StringUtils import NormPath
from Logger.ToolError import FILE_NOT_FOUND from Logger.ToolError import FILE_NOT_FOUND
from Logger.ToolError import FatalError from Logger.ToolError import FatalError

View File

@ -2,7 +2,7 @@
# This file is used to define common string related functions used in parsing # This file is used to define common string related functions used in parsing
# process # process
# #
# 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -13,7 +13,7 @@
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
# #
''' '''
String StringUtils
''' '''
## ##
# Import Modules # Import Modules

View File

@ -23,7 +23,7 @@ import distutils.util
from Logger import ToolError from Logger import ToolError
from Logger import Log as EdkLogger from Logger import Log as EdkLogger
from Logger import StringTable as ST from Logger import StringTable as ST
from Library.String import GetLineNo from Library.StringUtils import GetLineNo
from Library.Misc import PathClass from Library.Misc import PathClass
from Library.Misc import GetCharIndexOutStr from Library.Misc import GetCharIndexOutStr
from Library import DataType as DT from Library import DataType as DT

View File

@ -2,7 +2,7 @@
# This file is used to define class objects of [Defines] section for INF file. # This file is used to define class objects of [Defines] section for INF file.
# It will consumed by InfParser # 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -23,7 +23,7 @@ from Logger import StringTable as ST
from Logger import ToolError from Logger import ToolError
from Library import GlobalData from Library import GlobalData
from Library import DataType as DT from Library import DataType as DT
from Library.String import GetSplitValueList from Library.StringUtils import GetSplitValueList
from Library.Misc import CheckGuidRegFormat from Library.Misc import CheckGuidRegFormat
from Library.Misc import Sdict from Library.Misc import Sdict
from Library.Misc import ConvPathFromAbsToRel from Library.Misc import ConvPathFromAbsToRel

View File

@ -2,7 +2,7 @@
# This file is used to define class objects of INF file [Pcds] section. # This file is used to define class objects of INF file [Pcds] section.
# It will consumed by InfParser. # 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -31,8 +31,8 @@ from Library.ParserValidate import IsValidCVariableName
from Library.ParserValidate import IsValidPcdValue from Library.ParserValidate import IsValidPcdValue
from Library.ParserValidate import IsValidArch from Library.ParserValidate import IsValidArch
from Library.CommentParsing import ParseComment from Library.CommentParsing import ParseComment
from Library.String import GetSplitValueList from Library.StringUtils import GetSplitValueList
from Library.String import IsHexDigitUINT32 from Library.StringUtils import IsHexDigitUINT32
from Library.ExpressionValidate import IsValidFeatureFlagExp from Library.ExpressionValidate import IsValidFeatureFlagExp
from Parser.InfAsBuiltProcess import GetPackageListInfo from Parser.InfAsBuiltProcess import GetPackageListInfo
from Parser.DecParser import Dec from Parser.DecParser import Dec

View File

@ -1,7 +1,7 @@
## @file ## @file
# This file is used to parse DEC file. It will consumed by DecParser # 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # 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 Object.Parser.DecObject import DecPcdItemObject
from Library.Misc import GuidStructureStringToGuidString from Library.Misc import GuidStructureStringToGuidString
from Library.Misc import CheckGuidRegFormat from Library.Misc import CheckGuidRegFormat
from Library.String import ReplaceMacro from Library.StringUtils import ReplaceMacro
from Library.String import GetSplitValueList from Library.StringUtils import GetSplitValueList
from Library.String import gMACRO_PATTERN from Library.StringUtils import gMACRO_PATTERN
from Library.String import ConvertSpecialChar from Library.StringUtils import ConvertSpecialChar
from Library.CommentParsing import ParsePcdErrorCode from Library.CommentParsing import ParsePcdErrorCode
## ##

View File

@ -1,7 +1,7 @@
## @file ## @file
# This file is used to provide method for process AsBuilt INF file. It will consumed by InfParser # 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # 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 StringTable as ST
from Logger import ToolError from Logger import ToolError
from Library.String import GetSplitValueList from Library.StringUtils import GetSplitValueList
from Library.Misc import GetHelpStringByRemoveHashKey from Library.Misc import GetHelpStringByRemoveHashKey
from Library.Misc import ValidFile from Library.Misc import ValidFile
from Library.Misc import ProcessLineExtender from Library.Misc import ProcessLineExtender

View File

@ -1,7 +1,7 @@
## @file ## @file
# This file contained the parser for INF 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -23,8 +23,8 @@ import re
import os import os
from copy import deepcopy from copy import deepcopy
from Library.String import GetSplitValueList from Library.StringUtils import GetSplitValueList
from Library.String import ConvertSpecialChar from Library.StringUtils import ConvertSpecialChar
from Library.Misc import ProcessLineExtender from Library.Misc import ProcessLineExtender
from Library.Misc import ProcessEdkComment from Library.Misc import ProcessEdkComment
from Library.Parsing import NormPath from Library.Parsing import NormPath

View File

@ -1,7 +1,7 @@
## @file ## @file
# This file contained the miscellaneous functions for INF parser # 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # 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 import DataType as DT
from Library.String import gMACRO_PATTERN from Library.StringUtils import gMACRO_PATTERN
from Library.String import ReplaceMacro from Library.StringUtils import ReplaceMacro
from Object.Parser.InfMisc import ErrorInInf from Object.Parser.InfMisc import ErrorInInf
from Logger.StringTable import ERR_MARCO_DEFINITION_MISS_ERROR from Logger.StringTable import ERR_MARCO_DEFINITION_MISS_ERROR

View File

@ -1,7 +1,7 @@
## @file ## @file
# This file contained the parser for [Pcds] sections in INF 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # 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.Parsing import MacroParser
from Library.Misc import GetSplitValueList from Library.Misc import GetSplitValueList
from Library import GlobalData from Library import GlobalData
from Library.String import SplitPcdEntry from Library.StringUtils import SplitPcdEntry
from Parser.InfParserMisc import InfParserSectionRoot from Parser.InfParserMisc import InfParserSectionRoot
class InfPcdSectionParser(InfParserSectionRoot): class InfPcdSectionParser(InfParserSectionRoot):

View File

@ -1,7 +1,7 @@
## @file ## @file
# This file contained the parser for sections in INF 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -21,7 +21,7 @@ InfSectionParser
from copy import deepcopy from copy import deepcopy
import re import re
from Library.String import GetSplitValueList from Library.StringUtils import GetSplitValueList
from Library.CommentParsing import ParseHeaderCommentSection from Library.CommentParsing import ParseHeaderCommentSection
from Library.CommentParsing import ParseComment from Library.CommentParsing import ParseComment

View File

@ -1,7 +1,7 @@
## @file InfPomAlignment.py ## @file InfPomAlignment.py
# This file contained the adapter for convert INF parser object to POM Object # This file contained the adapter for convert INF parser object to POM Object
# #
# 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -20,10 +20,10 @@ InfPomAlignment
import os.path import os.path
from Logger import StringTable as ST from Logger import StringTable as ST
import Logger.Log as Logger import Logger.Log as Logger
from Library.String import FORMAT_INVALID from Library.StringUtils import FORMAT_INVALID
from Library.String import PARSER_ERROR from Library.StringUtils import PARSER_ERROR
from Library.String import NormPath from Library.StringUtils import NormPath
from Library.String import GetSplitValueList from Library.StringUtils import GetSplitValueList
from Library.Misc import ConvertVersionToDecimal from Library.Misc import ConvertVersionToDecimal
from Library.Misc import GetHelpStringByRemoveHashKey from Library.Misc import GetHelpStringByRemoveHashKey
from Library.Misc import ConvertArchList from Library.Misc import ConvertArchList

View File

@ -1,7 +1,7 @@
## @file InfPomAlignmentMisc.py ## @file InfPomAlignmentMisc.py
# This file contained the routines for InfPomAlignment # This file contained the routines for InfPomAlignment
# #
# 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -24,7 +24,7 @@ from Library import DataType as DT
from Library.Misc import ConvertArchList from Library.Misc import ConvertArchList
from Object.POM.ModuleObject import BinaryFileObject from Object.POM.ModuleObject import BinaryFileObject
from Object.POM import CommonObject from Object.POM import CommonObject
from Library.String import FORMAT_INVALID from Library.StringUtils import FORMAT_INVALID
from Library.Misc import CheckGuidRegFormat from Library.Misc import CheckGuidRegFormat
from Logger import StringTable as ST from Logger import StringTable as ST

View File

@ -1,7 +1,7 @@
## @file ## @file
# This file contain unit test for CommentParsing # This file contain unit test for CommentParsing
# #
# 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -28,7 +28,7 @@ from Object.POM.CommonObject import PpiObject
from Object.POM.CommonObject import PcdObject from Object.POM.CommonObject import PcdObject
from Object.POM.ModuleObject import HobObject from Object.POM.ModuleObject import HobObject
from Library.String import GetSplitValueList from Library.StringUtils import GetSplitValueList
from Library.DataType import TAB_SPACE_SPLIT from Library.DataType import TAB_SPACE_SPLIT
from Library.DataType import TAB_LANGUAGE_EN_US from Library.DataType import TAB_LANGUAGE_EN_US
from Library.DataType import TAB_LANGUAGE_ENG from Library.DataType import TAB_LANGUAGE_ENG

View File

@ -1,7 +1,7 @@
## @file ## @file
# This file contain unit test for CommentParsing # This file contain unit test for CommentParsing
# #
# 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -19,7 +19,7 @@ from Library.CommentParsing import ParseHeaderCommentSection, \
ParseDecPcdGenericComment, \ ParseDecPcdGenericComment, \
ParseDecPcdTailComment ParseDecPcdTailComment
from Library.CommentParsing import _IsCopyrightLine from Library.CommentParsing import _IsCopyrightLine
from Library.String import GetSplitValueList from Library.StringUtils import GetSplitValueList
from Library.DataType import TAB_SPACE_SPLIT from Library.DataType import TAB_SPACE_SPLIT
from Library.DataType import TAB_LANGUAGE_EN_US from Library.DataType import TAB_LANGUAGE_EN_US

View File

@ -1,7 +1,7 @@
## @file ## @file
# This file is used to parse a PCD file of .PKG file # This file is used to parse a PCD file of .PKG 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -21,10 +21,10 @@ CommonXml
# #
from Core.DistributionPackageClass import DistributionPackageHeaderObject from Core.DistributionPackageClass import DistributionPackageHeaderObject
from Library.String import ConvertNEToNOTEQ from Library.StringUtils import ConvertNEToNOTEQ
from Library.String import ConvertNOTEQToNE from Library.StringUtils import ConvertNOTEQToNE
from Library.String import GetSplitValueList from Library.StringUtils import GetSplitValueList
from Library.String import GetStringOfList from Library.StringUtils import GetStringOfList
from Library.Xml.XmlRoutines import XmlElement from Library.Xml.XmlRoutines import XmlElement
from Library.Xml.XmlRoutines import XmlElement2 from Library.Xml.XmlRoutines import XmlElement2
from Library.Xml.XmlRoutines import XmlAttribute from Library.Xml.XmlRoutines import XmlAttribute

View File

@ -1,7 +1,7 @@
## @file ## @file
# This file is used to parse a xml file of .PKG file # This file is used to parse a xml file of .PKG file
# #
# Copyright (c) 2011, 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -15,9 +15,9 @@
''' '''
GuidProtocolPpiXml GuidProtocolPpiXml
''' '''
from Library.String import ConvertNEToNOTEQ from Library.StringUtils import ConvertNEToNOTEQ
from Library.String import ConvertNOTEQToNE from Library.StringUtils import ConvertNOTEQToNE
from Library.String import GetStringOfList from Library.StringUtils import GetStringOfList
from Library.Xml.XmlRoutines import XmlElement from Library.Xml.XmlRoutines import XmlElement
from Library.Xml.XmlRoutines import XmlAttribute from Library.Xml.XmlRoutines import XmlAttribute
from Library.Xml.XmlRoutines import XmlNode from Library.Xml.XmlRoutines import XmlNode

View File

@ -1,7 +1,7 @@
## @file ## @file
# This file is for converting package information data file to xml file. # This file is for converting package information data file to xml 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -30,7 +30,7 @@ from Library.DataType import TAB_EQUAL_SPLIT
from Library.DataType import TAB_SECTION_START from Library.DataType import TAB_SECTION_START
from Library.DataType import TAB_SECTION_END from Library.DataType import TAB_SECTION_END
from Logger import StringTable as ST from Logger import StringTable as ST
from Library.String import ConvertSpecialChar from Library.StringUtils import ConvertSpecialChar
from Library.ParserValidate import IsValidPath from Library.ParserValidate import IsValidPath
from Library import GlobalData from Library import GlobalData

View File

@ -1,7 +1,7 @@
## @file ## @file
# This file is used to parse a Module file of .PKG file # This file is used to parse a Module file of .PKG 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -17,10 +17,10 @@ ModuleSurfaceAreaXml
''' '''
from xml.dom import minidom from xml.dom import minidom
from Library.String import ConvertNEToNOTEQ from Library.StringUtils import ConvertNEToNOTEQ
from Library.String import ConvertNOTEQToNE from Library.StringUtils import ConvertNOTEQToNE
from Library.String import GetStringOfList from Library.StringUtils import GetStringOfList
from Library.String import IsMatchArch from Library.StringUtils import IsMatchArch
from Library.Xml.XmlRoutines import XmlElement from Library.Xml.XmlRoutines import XmlElement
from Library.Xml.XmlRoutines import XmlAttribute from Library.Xml.XmlRoutines import XmlAttribute
from Library.Xml.XmlRoutines import XmlNode from Library.Xml.XmlRoutines import XmlNode

View File

@ -1,7 +1,7 @@
## @file ## @file
# This file is used to parse a Package file of .PKG file # This file is used to parse a Package file of .PKG 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -17,7 +17,7 @@ PackageSurfaceAreaXml
''' '''
from xml.dom import minidom from xml.dom import minidom
from Library.String import GetStringOfList from Library.StringUtils import GetStringOfList
from Library.Xml.XmlRoutines import XmlElement from Library.Xml.XmlRoutines import XmlElement
from Library.Xml.XmlRoutines import XmlNode from Library.Xml.XmlRoutines import XmlNode
from Library.Xml.XmlRoutines import XmlList from Library.Xml.XmlRoutines import XmlList

View File

@ -1,7 +1,7 @@
## @file ## @file
# This file is used to parse a PCD file of .PKG file # This file is used to parse a PCD file of .PKG 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 # This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this # under the terms and conditions of the BSD License which accompanies this
@ -25,9 +25,9 @@ from Library.Xml.XmlRoutines import XmlAttribute
from Library.Xml.XmlRoutines import XmlNode from Library.Xml.XmlRoutines import XmlNode
from Library.Xml.XmlRoutines import CreateXmlElement from Library.Xml.XmlRoutines import CreateXmlElement
from Library.Xml.XmlRoutines import XmlList from Library.Xml.XmlRoutines import XmlList
from Library.String import GetStringOfList from Library.StringUtils import GetStringOfList
from Library.String import ConvertNEToNOTEQ from Library.StringUtils import ConvertNEToNOTEQ
from Library.String import ConvertNOTEQToNE from Library.StringUtils import ConvertNOTEQToNE
from Library import GlobalData from Library import GlobalData
from Object.POM.CommonObject import PcdObject from Object.POM.CommonObject import PcdObject
from Object.POM.CommonObject import PcdErrorObject from Object.POM.CommonObject import PcdErrorObject