[edk2] [PATCH] BaseTools: Fix indentation

Gary Lin posted 1 patch 6 years, 11 months ago
Failed in applying to current master (apply log)
BaseTools/Source/Python/Ecc/CParser.py | 11 ++---------
BaseTools/Source/Python/Eot/CParser.py | 11 ++---------
2 files changed, 4 insertions(+), 18 deletions(-)
[edk2] [PATCH] BaseTools: Fix indentation
Posted by Gary Lin 6 years, 11 months ago
Mixing usage of spaces and tabs may confuse the python
compiler/interpreter.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Gary Lin <glin@suse.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
---
 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.15.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Re: [edk2] [PATCH] BaseTools: Fix indentation
Posted by Zhu, Yonghong 6 years, 11 months ago
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com> 

Best Regards,
Zhu Yonghong


-----Original Message-----
From: Gary Lin [mailto:glin@suse.com] 
Sent: Wednesday, January 17, 2018 12:06 PM
To: edk2-devel@lists.01.org
Cc: Zhu, Yonghong <yonghong.zhu@intel.com>; Gao, Liming <liming.gao@intel.com>
Subject: [PATCH] BaseTools: Fix indentation

Mixing usage of spaces and tabs may confuse the python compiler/interpreter.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Gary Lin <glin@suse.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
---
 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.15.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel