From 9fb2cbdac4cb3122d72223cff02395daf751e365 Mon Sep 17 00:00:00 2001 From: Gary Lin Date: Wed, 27 Jun 2018 18:07:55 +0800 Subject: [PATCH] BaseTools: Remove the old python "not-equal" in DscBuildData.py Replace "<>" with "!=" to be compatible with python3. Contributed-under: TianoCore Contribution Agreement 1.1 Cc: Yonghong Zhu Cc: Liming Gao Signed-off-by: Gary Lin Reviewed-by: Yonghong Zhu --- BaseTools/Source/Python/Workspace/DscBuildData.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py b/BaseTools/Source/Python/Workspace/DscBuildData.py index 06732e6fad..5cc814185e 100644 --- a/BaseTools/Source/Python/Workspace/DscBuildData.py +++ b/BaseTools/Source/Python/Workspace/DscBuildData.py @@ -2108,7 +2108,7 @@ class DscBuildData(PlatformBuildClassObject): Messages = StdErr Messages = Messages.split('\n') MessageGroup = [] - if returncode <>0: + if returncode != 0: CAppBaseFileName = os.path.join(self.OutputPath, PcdValueInitName) File = open (CAppBaseFileName + '.c', 'r') FileData = File.readlines() -- 2.39.5