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/CommentParsing.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'BaseTools/Source/Python/UPT/Library/CommentParsing.py') diff --git a/BaseTools/Source/Python/UPT/Library/CommentParsing.py b/BaseTools/Source/Python/UPT/Library/CommentParsing.py index a09a530ffb..250ba2dd5e 100644 --- a/BaseTools/Source/Python/UPT/Library/CommentParsing.py +++ b/BaseTools/Source/Python/UPT/Library/CommentParsing.py @@ -426,7 +426,7 @@ def _CheckListExpression(Expression): return IsValidListExpr(ListExpr) -## _CheckExpreesion +## _CheckExpression # # @param Expression: Pcd value expression # @@ -476,11 +476,11 @@ def _ValidateCopyright(Line): def GenerateTokenList (Comment): # - # Tokenize Comment using '#' and ' ' as token seperators + # Tokenize Comment using '#' and ' ' as token separators # - RelplacedComment = None - while Comment != RelplacedComment: - RelplacedComment = Comment + ReplacedComment = None + while Comment != ReplacedComment: + ReplacedComment = Comment Comment = Comment.replace('##', '#').replace(' ', ' ').replace(' ', '#').strip('# ') return Comment.split('#') @@ -538,13 +538,13 @@ def ParseComment (Comment, UsageTokens, TypeTokens, RemoveTokens, ParseVariable) NumTokens = 1 # - # Initialze HelpText to Comment. + # Initialize HelpText to Comment. # Content will be remove from HelpText as matching tokens are found # HelpText = Comment # - # Tokenize Comment using '#' and ' ' as token seperators + # Tokenize Comment using '#' and ' ' as token separators # List = GenerateTokenList (Comment) -- cgit v1.2.3