]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Parser/InfParser.py
BaseTools/UPT: Porting UPT Tool from Python2 to Python3
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Parser / InfParser.py
index cd99262e036249ffa1c68044ffd4bd15f8472e1b..d17d2c887bbef7fe5a38793490881601be3a7d46 100644 (file)
@@ -51,7 +51,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 +86,7 @@ class InfParser(InfSectionParser):
         #\r
         # Call parent class construct function\r
         #\r
-        super(InfParser, self).__init__()\r
+        super().__init__()\r
 \r
         self.WorkspaceDir    = WorkspaceDir\r
         self.SupArchList     = DT.ARCH_LIST\r