From c60377d7f9ec80ecc7fe76c38b81ffd98b7ef2e4 Mon Sep 17 00:00:00 2001 From: "Feng, Bob C" Date: Fri, 4 Jan 2019 17:35:10 +0800 Subject: BaseTools: ECC tool Python3 adaption v2: The python files under CParser4 are generated by antlr4 and for python3 usage. They have python3 specific syntax, for example the data type declaration for the arguments of a function. That is not compitable with python2. this patch is to remove these syntax. ECC tool Python3 adaption. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng Cc: Liming Gao Tested-by: Laszlo Ersek Tested-by: Ard Biesheuvel Reviewed-by: Liming Gao --- BaseTools/Source/Python/Ecc/FileProfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BaseTools/Source/Python/Ecc/FileProfile.py') diff --git a/BaseTools/Source/Python/Ecc/FileProfile.py b/BaseTools/Source/Python/Ecc/FileProfile.py index 4434981628..8084cbcb6c 100644 --- a/BaseTools/Source/Python/Ecc/FileProfile.py +++ b/BaseTools/Source/Python/Ecc/FileProfile.py @@ -47,7 +47,7 @@ class FileProfile : self.FileLinesList = [] self.FileLinesListFromFile = [] try: - fsock = open(FileName, "rb", 0) + fsock = open(FileName, "r") try: self.FileLinesListFromFile = fsock.readlines() finally: -- cgit v1.2.3