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/Eot/CParser3/CLexer.py | 2 +- BaseTools/Source/Python/Eot/CParser3/CParser.py | 2 +- BaseTools/Source/Python/Eot/CodeFragmentCollector.py | 6 +++--- BaseTools/Source/Python/Eot/Database.py | 6 +++--- BaseTools/Source/Python/Eot/EotGlobalData.py | 2 +- BaseTools/Source/Python/Eot/EotMain.py | 2 +- BaseTools/Source/Python/Eot/InfParserLite.py | 4 ++-- BaseTools/Source/Python/Eot/Parser.py | 4 ++-- BaseTools/Source/Python/Eot/Report.py | 2 +- 9 files changed, 15 insertions(+), 15 deletions(-) (limited to 'BaseTools/Source/Python/Eot') diff --git a/BaseTools/Source/Python/Eot/CParser3/CLexer.py b/BaseTools/Source/Python/Eot/CParser3/CLexer.py index b9e57c1..17c1af6 100644 --- a/BaseTools/Source/Python/Eot/CParser3/CLexer.py +++ b/BaseTools/Source/Python/Eot/CParser3/CLexer.py @@ -6,7 +6,7 @@ from antlr3.compat import set, frozenset ## @file # The file defines the Lexer for C source files. # -# THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE. +# THIS FILE IS AUTO-GENERATED. PLEASE DO NOT MODIFY THIS FILE. # This file is generated by running: # java org.antlr.Tool C.g # diff --git a/BaseTools/Source/Python/Eot/CParser3/CParser.py b/BaseTools/Source/Python/Eot/CParser3/CParser.py index 0b74b53..973e7a8 100644 --- a/BaseTools/Source/Python/Eot/CParser3/CParser.py +++ b/BaseTools/Source/Python/Eot/CParser3/CParser.py @@ -8,7 +8,7 @@ from antlr3.compat import set, frozenset ## @file # The file defines the parser for C source files. # -# THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE. +# THIS FILE IS AUTO-GENERATED. PLEASE DO NOT MODIFY THIS FILE. # This file is generated by running: # java org.antlr.Tool C.g # diff --git a/BaseTools/Source/Python/Eot/CodeFragmentCollector.py b/BaseTools/Source/Python/Eot/CodeFragmentCollector.py index b1e77a6..ec1faa6 100644 --- a/BaseTools/Source/Python/Eot/CodeFragmentCollector.py +++ b/BaseTools/Source/Python/Eot/CodeFragmentCollector.py @@ -390,10 +390,10 @@ class CodeFragmentCollector: print('################# ' + self.FileName + '#####################') print('/****************************************/') - print('/*************** ASSIGNMENTS ***************/') + print('/************** ASSIGNMENTS *************/') print('/****************************************/') - for asign in FileProfile.AssignmentExpressionList: - print(str(asign.StartPos) + asign.Name + asign.Operator + asign.Value) + for assign in FileProfile.AssignmentExpressionList: + print(str(assign.StartPos) + assign.Name + assign.Operator + assign.Value) print('/****************************************/') print('/********* PREPROCESS DIRECTIVES ********/') diff --git a/BaseTools/Source/Python/Eot/Database.py b/BaseTools/Source/Python/Eot/Database.py index 65bac9c..f619116 100644 --- a/BaseTools/Source/Python/Eot/Database.py +++ b/BaseTools/Source/Python/Eot/Database.py @@ -38,7 +38,7 @@ DATABASE_PATH = "Eot.db" ## Database class # -# This class defined the EOT databse +# This class defined the EOT database # During the phase of initialization, the database will create all tables and # insert all records of table DataModel # @@ -83,7 +83,7 @@ class Database(object): self.Conn = sqlite3.connect(self.DbPath, isolation_level = 'DEFERRED') self.Conn.execute("PRAGMA page_size=8192") self.Conn.execute("PRAGMA synchronous=OFF") - # to avoid non-ascii charater conversion error + # to avoid non-ascii character conversion error self.Conn.text_factory = str self.Cur = self.Conn.cursor() @@ -198,7 +198,7 @@ class Database(object): ## UpdateIdentifierBelongsToFunction() method # - # Update the field "BelongsToFunction" for each Indentifier + # Update the field "BelongsToFunction" for each Identifier # # @param self: The object pointer # diff --git a/BaseTools/Source/Python/Eot/EotGlobalData.py b/BaseTools/Source/Python/Eot/EotGlobalData.py index cb6a940..729b9f7 100644 --- a/BaseTools/Source/Python/Eot/EotGlobalData.py +++ b/BaseTools/Source/Python/Eot/EotGlobalData.py @@ -92,7 +92,7 @@ gConsumedProtocolLibrary['EfiLocateProtocolHandleBuffers'] = 0 gConsumedProtocolLibrary['EfiLocateProtocolInterface'] = 0 gConsumedProtocolLibrary['EfiHandleProtocol'] = 1 -# Dict for callback PROTOCOL function callling +# Dict for callback PROTOCOL function calling gCallbackProtocolLibrary = OrderedDict() gCallbackProtocolLibrary['EfiRegisterProtocolCallback'] = 2 diff --git a/BaseTools/Source/Python/Eot/EotMain.py b/BaseTools/Source/Python/Eot/EotMain.py index fd4bee6..e4359c5 100644 --- a/BaseTools/Source/Python/Eot/EotMain.py +++ b/BaseTools/Source/Python/Eot/EotMain.py @@ -1514,7 +1514,7 @@ class Eot(object): % (Identifier, '.NotifyPpi', '->NotifyPpi', MODEL_IDENTIFIER_FUNCTION_CALLING) SearchPpi(SqlCommand, Identifier, SourceFileID, SourceFileFullPath, ItemMode) - # Find Procotols + # Find Protocols ItemMode = 'Produced' SqlCommand = """select Value, Name, BelongsToFile, StartLine, EndLine from %s where (Name like '%%%s%%' or Name like '%%%s%%' or Name like '%%%s%%' or Name like '%%%s%%') and Model = %s""" \ diff --git a/BaseTools/Source/Python/Eot/InfParserLite.py b/BaseTools/Source/Python/Eot/InfParserLite.py index 0cfe039..cec0833 100644 --- a/BaseTools/Source/Python/Eot/InfParserLite.py +++ b/BaseTools/Source/Python/Eot/InfParserLite.py @@ -41,8 +41,8 @@ class EdkInfParser(object): # @param Database: Eot database # @param SourceFileList: A list for all source file belonging this INF file # @param SourceOverridePath: Override path for source file - # @param Edk_Source: Envirnoment variable EDK_SOURCE - # @param Efi_Source: Envirnoment variable EFI_SOURCE + # @param Edk_Source: Environment variable EDK_SOURCE + # @param Efi_Source: Environment variable EFI_SOURCE # def __init__(self, Filename = None, Database = None, SourceFileList = None, SourceOverridePath = None, Edk_Source = None, Efi_Source = None): self.Identification = Identification() diff --git a/BaseTools/Source/Python/Eot/Parser.py b/BaseTools/Source/Python/Eot/Parser.py index 673088d..6b47409 100644 --- a/BaseTools/Source/Python/Eot/Parser.py +++ b/BaseTools/Source/Python/Eot/Parser.py @@ -62,7 +62,7 @@ def DeCompress(Method, Input): # @param MergeMultipleLines: Switch for if merge multiple lines # @param LineNo: Default line no # -# @return Lines: The file contents after remvoing comments +# @return Lines: The file contents after removing comments # def PreProcess(Filename, MergeMultipleLines = True, LineNo = -1): Lines = [] @@ -770,7 +770,7 @@ def GetParameterName(Parameter): # @param Table: Table to be searched # @param Key: The keyword # -# @return Value: The value of the the keyword +# @return Value: The value of the keyword # def FindKeyValue(Db, Table, Key): SqlCommand = """select Value from %s where Name = '%s' and (Model = %s or Model = %s)""" % (Table, Key, MODEL_IDENTIFIER_VARIABLE, MODEL_IDENTIFIER_ASSIGNMENT_EXPRESSION) diff --git a/BaseTools/Source/Python/Eot/Report.py b/BaseTools/Source/Python/Eot/Report.py index 01ad86a..3e71c12 100644 --- a/BaseTools/Source/Python/Eot/Report.py +++ b/BaseTools/Source/Python/Eot/Report.py @@ -332,7 +332,7 @@ class Report(object): Content = """ """ self.WriteLn(Content) - #End of Consumed Ppi/Portocol + #End of Consumed Ppi/Protocol # Find Produced Ppi/Protocol SqlCommand = """select ModuleName, ItemType, GuidName, GuidValue, GuidMacro from Report -- cgit v1.1