From fb0b35e05f772bd415fe264267bbbcde2e0accda Mon Sep 17 00:00:00 2001 From: Antoine Coeur Date: Wed, 6 Feb 2019 15:44:39 +0800 Subject: BaseTools: Various typo Various typo in BaseTools. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Coeur Reviewed-by: Liming Gao --- BaseTools/Source/Python/UPT/Library/ParserValidate.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'BaseTools/Source/Python/UPT/Library/ParserValidate.py') diff --git a/BaseTools/Source/Python/UPT/Library/ParserValidate.py b/BaseTools/Source/Python/UPT/Library/ParserValidate.py index 87d156fa4c..1408aec242 100644 --- a/BaseTools/Source/Python/UPT/Library/ParserValidate.py +++ b/BaseTools/Source/Python/UPT/Library/ParserValidate.py @@ -13,7 +13,7 @@ # ''' -PaserValidate +ParserValidate ''' import os.path @@ -68,7 +68,7 @@ def IsValidHex(HexStr): # def IsValidBoolType(BoolString): # - # Valid Ture + # Valid True # if BoolString == 'TRUE' or \ BoolString == 'True' or \ @@ -124,11 +124,11 @@ def IsValidInfComponentType(ComponentType): ## Is valid Tool Family or not # # @param ToolFamily: A string contain Tool Family need to be judged. -# Famlily := [A-Z]([a-zA-Z0-9])* +# Family := [A-Z]([a-zA-Z0-9])* # def IsValidToolFamily(ToolFamily): - ReIsValieFamily = re.compile(r"^[A-Z]+[A-Za-z0-9]{0,}$", re.DOTALL) - if ReIsValieFamily.match(ToolFamily) is None: + ReIsValidFamily = re.compile(r"^[A-Z]+[A-Za-z0-9]{0,}$", re.DOTALL) + if ReIsValidFamily.match(ToolFamily) is None: return False return True @@ -158,8 +158,8 @@ def IsValidToolTagName(TagName): def IsValidArch(Arch): if Arch == 'common': return True - ReIsValieArch = re.compile(r"^[a-zA-Z]+[a-zA-Z0-9]{0,}$", re.DOTALL) - if ReIsValieArch.match(Arch) is None: + ReIsValidArch = re.compile(r"^[a-zA-Z]+[a-zA-Z0-9]{0,}$", re.DOTALL) + if ReIsValidArch.match(Arch) is None: return False return True -- cgit v1.2.3