From: Gary Lin Date: Wed, 17 Jan 2018 04:05:43 +0000 (+0800) Subject: BaseTools: Fix indentation in CParser.py file X-Git-Tag: edk2-stable201903~2517 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=877251b4212dedaabefbc3ef6cd637a5b2740d47 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 --- 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)