diff options
author | Antoine Coeur <Coeur@gmx.fr> | 2019-02-06 15:44:39 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2019-02-14 10:02:28 +0800 |
commit | fb0b35e05f772bd415fe264267bbbcde2e0accda (patch) | |
tree | 02a7553984090494ef5236f043fe6b59f619b7d5 /BaseTools/Source/Python/UPT/Library/CommentParsing.py | |
parent | 325ad6226099d276564a65cdef012de0ff45ba8e (diff) | |
download | edk2-fb0b35e05f772bd415fe264267bbbcde2e0accda.tar.gz edk2-fb0b35e05f772bd415fe264267bbbcde2e0accda.tar.bz2 edk2-fb0b35e05f772bd415fe264267bbbcde2e0accda.zip |
BaseTools: Various typo
Various typo in BaseTools.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Coeur <coeur@gmx.fr>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/UPT/Library/CommentParsing.py')
-rw-r--r-- | BaseTools/Source/Python/UPT/Library/CommentParsing.py | 14 |
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)
|