]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Scripts/UpdateBuildVersions.py
BaseTools: Various typo
[mirror_edk2.git] / BaseTools / Scripts / UpdateBuildVersions.py
index fb61b89bfb4c55c9012160e56f0509abf0bae35e..5a583db6c06e5da611429dfe18afbbd6df21ff79 100755 (executable)
@@ -4,7 +4,7 @@
 # This script will modife the C/Include/Common/BuildVersion.h file and the two\r
 # Python scripts, Python/Common/BuildVersion.py and Python/UPT/BuildVersion.py.\r
 # If SVN is available, the tool will obtain the current checked out version of\r
-# the source tree for including the the --version commands.\r
+# the source tree for including the --version commands.\r
 \r
 #  Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>\r
 #\r
@@ -73,7 +73,7 @@ def ParseOptions():
 \r
 \r
 def ShellCommandResults(CmdLine, Opt):\r
-    """ Execute the comand, returning the output content """\r
+    """ Execute the command, returning the output content """\r
     file_list = NamedTemporaryFile(delete=False)\r
     filename = file_list.name\r
     Results = []\r
@@ -253,7 +253,7 @@ def GetSvnRevision(opts):
     StatusCmd = "svn st -v --depth infinity --non-interactive"\r
     contents = ShellCommandResults(StatusCmd, opts)\r
     os.chdir(Cwd)\r
-    if type(contents) is ListType:\r
+    if isinstance(contents, ListType):\r
         for line in contents:\r
             if line.startswith("M "):\r
                 Modified = True\r
@@ -263,7 +263,7 @@ def GetSvnRevision(opts):
     InfoCmd = "svn info %s" % SrcPath.replace("\\", "/").strip()\r
     Revision = 0\r
     contents = ShellCommandResults(InfoCmd, opts)\r
-    if type(contents) is IntType:\r
+    if isinstance(contents, IntType):\r
         return 0, Modified\r
     for line in contents:\r
         line = line.strip()\r
@@ -284,7 +284,7 @@ def CheckSvn(opts):
     VerCmd = "svn --version"\r
     contents = ShellCommandResults(VerCmd, opts)\r
     opts.silent = OriginalSilent\r
-    if type(contents) is IntType:\r
+    if isinstance(contents, IntType):\r
         if opts.verbose:\r
             sys.stdout.write("SVN does not appear to be available.\n")\r
             sys.stdout.flush()\r