summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/UPT/Library/CommentParsing.py
diff options
context:
space:
mode:
Diffstat (limited to 'BaseTools/Source/Python/UPT/Library/CommentParsing.py')
-rw-r--r--BaseTools/Source/Python/UPT/Library/CommentParsing.py14
1 files changed, 7 insertions, 7 deletions
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)