]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/PomAdapter/InfPomAlignment.py
BaseTools: Remove './SecMain' from 'run' target
[mirror_edk2.git] / BaseTools / Source / Python / UPT / PomAdapter / InfPomAlignment.py
index c055089f2cad0600a53cd313efde6d3dfafa890f..9c406e5f49e32c9f09eb8a31085c1c00457ad1ea 100644 (file)
@@ -3,13 +3,7 @@
 #\r
 # Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
-# This program and the accompanying materials are licensed and made available\r
-# under the terms and conditions of the BSD License which accompanies this\r
-# distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 '''\r
 InfPomAlignment\r
@@ -133,7 +127,7 @@ class InfPomAlignment(ModuleObject):
         #\r
         # Should only have one ArchString Item.\r
         #\r
-        ArchString = RecordSet.keys()[0]\r
+        ArchString = list(RecordSet.keys())[0]\r
         ArchList = GetSplitValueList(ArchString, ' ')\r
         ArchList = ConvertArchList(ArchList)\r
         HasCalledFlag = False\r
@@ -293,7 +287,7 @@ class InfPomAlignment(ModuleObject):
             self.SetUserExtensionList(self.GetUserExtensionList() + [UserExtension])\r
         #\r
         # Get all meta-file header information\r
-        # the record is list of items formated:\r
+        # the record is list of items formatted:\r
         # [LineValue, Arch, StartLine, ID, Third]\r
         #\r
         InfHeaderObj = self.Parser.InfHeader\r