summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Eot
diff options
context:
space:
mode:
authorAntoine Coeur <Coeur@gmx.fr>2019-02-06 15:44:39 +0800
committerLiming Gao <liming.gao@intel.com>2019-02-14 10:02:28 +0800
commitfb0b35e05f772bd415fe264267bbbcde2e0accda (patch)
tree02a7553984090494ef5236f043fe6b59f619b7d5 /BaseTools/Source/Python/Eot
parent325ad6226099d276564a65cdef012de0ff45ba8e (diff)
downloadedk2-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/Eot')
-rw-r--r--BaseTools/Source/Python/Eot/CParser3/CLexer.py2
-rw-r--r--BaseTools/Source/Python/Eot/CParser3/CParser.py2
-rw-r--r--BaseTools/Source/Python/Eot/CodeFragmentCollector.py6
-rw-r--r--BaseTools/Source/Python/Eot/Database.py6
-rw-r--r--BaseTools/Source/Python/Eot/EotGlobalData.py2
-rw-r--r--BaseTools/Source/Python/Eot/EotMain.py2
-rw-r--r--BaseTools/Source/Python/Eot/InfParserLite.py4
-rw-r--r--BaseTools/Source/Python/Eot/Parser.py4
-rw-r--r--BaseTools/Source/Python/Eot/Report.py2
9 files changed, 15 insertions, 15 deletions
diff --git a/BaseTools/Source/Python/Eot/CParser3/CLexer.py b/BaseTools/Source/Python/Eot/CParser3/CLexer.py
index b9e57c1b55..17c1af6113 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 0b74b53ae7..973e7a82b7 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 b1e77a690a..ec1faa665e 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 65bac9c127..f6191161f2 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 cb6a940ab8..729b9f7c77 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 fd4bee6f90..e4359c5015 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 0cfe0398f0..cec083330b 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 673088d41d..6b47409c9d 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 01ad86ad3e..3e71c12393 100644
--- a/BaseTools/Source/Python/Eot/Report.py
+++ b/BaseTools/Source/Python/Eot/Report.py
@@ -332,7 +332,7 @@ class Report(object):
Content = """ </table></td>
</tr>"""
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