]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Parser/InfParser.py
BaseTools: Remove './SecMain' from 'run' target
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Parser / InfParser.py
index cd99262e036249ffa1c68044ffd4bd15f8472e1b..2072be6e42f968266752f5832394a7757be7cf3f 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
 '''\r
@@ -51,7 +45,7 @@ def OpenInfFile(Filename):
     FileLinesList = []\r
 \r
     try:\r
-        FInputfile = open(Filename, "rb", 0)\r
+        FInputfile = open(Filename, "r")\r
         try:\r
             FileLinesList = FInputfile.readlines()\r
         except BaseException:\r
@@ -86,7 +80,7 @@ class InfParser(InfSectionParser):
         #\r
         # Call parent class construct function\r
         #\r
-        super(InfParser, self).__init__()\r
+        InfSectionParser.__init__()\r
 \r
         self.WorkspaceDir    = WorkspaceDir\r
         self.SupArchList     = DT.ARCH_LIST\r