From 877251b4212dedaabefbc3ef6cd637a5b2740d47 Mon Sep 17 00:00:00 2001 From: Gary Lin Date: Wed, 17 Jan 2018 12:05:43 +0800 Subject: [PATCH] BaseTools: Fix indentation in CParser.py file Mixing usage of spaces and tabs may confuse the python compiler/interpreter. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Gary Lin Cc: Yonghong Zhu Cc: Liming Gao Reviewed-by: Yonghong Zhu --- BaseTools/Source/Python/Ecc/CParser.py | 11 ++--------- BaseTools/Source/Python/Eot/CParser.py | 11 ++--------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/BaseTools/Source/Python/Ecc/CParser.py b/BaseTools/Source/Python/Ecc/CParser.py index baa521f43c..41f2811430 100644 --- a/BaseTools/Source/Python/Ecc/CParser.py +++ b/BaseTools/Source/Python/Ecc/CParser.py @@ -98,16 +98,9 @@ class CParser(Parser): Parser.__init__(self, input) self.ruleMemo = {} - self.function_definition_stack = [] - self.postfix_expression_stack = [] + self.function_definition_stack = [] + self.postfix_expression_stack = [] - - - - - - - def printTokenInfo(self, line, offset, tokenText): print str(line)+ ',' + str(offset) + ':' + str(tokenText) diff --git a/BaseTools/Source/Python/Eot/CParser.py b/BaseTools/Source/Python/Eot/CParser.py index baa521f43c..41f2811430 100644 --- a/BaseTools/Source/Python/Eot/CParser.py +++ b/BaseTools/Source/Python/Eot/CParser.py @@ -98,16 +98,9 @@ class CParser(Parser): Parser.__init__(self, input) self.ruleMemo = {} - self.function_definition_stack = [] - self.postfix_expression_stack = [] + self.function_definition_stack = [] + self.postfix_expression_stack = [] - - - - - - - def printTokenInfo(self, line, offset, tokenText): print str(line)+ ',' + str(offset) + ':' + str(tokenText) -- 2.39.2