]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Library/CommentParsing.py
BaseTools: Various typo
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Library / CommentParsing.py
index a09a530ffb05251f34ce1083e5fd89abb5d42012..250ba2dd5e8dc94746d7776c469ac4f5d0705bbb 100644 (file)
@@ -426,7 +426,7 @@ def _CheckListExpression(Expression):
 \r
     return IsValidListExpr(ListExpr)\r
 \r
-## _CheckExpreesion\r
+## _CheckExpression\r
 #\r
 # @param Expression: Pcd value expression\r
 #\r
@@ -476,11 +476,11 @@ def _ValidateCopyright(Line):
 \r
 def GenerateTokenList (Comment):\r
     #\r
-    # Tokenize Comment using '#' and ' ' as token seperators\r
+    # Tokenize Comment using '#' and ' ' as token separators\r
     #\r
-    RelplacedComment = None\r
-    while Comment != RelplacedComment:\r
-        RelplacedComment = Comment\r
+    ReplacedComment = None\r
+    while Comment != ReplacedComment:\r
+        ReplacedComment = Comment\r
         Comment = Comment.replace('##', '#').replace('  ', ' ').replace(' ', '#').strip('# ')\r
     return Comment.split('#')\r
 \r
@@ -538,13 +538,13 @@ def ParseComment (Comment, UsageTokens, TypeTokens, RemoveTokens, ParseVariable)
                 NumTokens = 1\r
 \r
     #\r
-    # Initialze HelpText to Comment.\r
+    # Initialize HelpText to Comment.\r
     # Content will be remove from HelpText as matching tokens are found\r
     #\r
     HelpText = Comment\r
 \r
     #\r
-    # Tokenize Comment using '#' and ' ' as token seperators\r
+    # Tokenize Comment using '#' and ' ' as token separators\r
     #\r
     List = GenerateTokenList (Comment)\r
 \r