public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] BaseTools: Fix indentation
@ 2018-01-17  4:05 Gary Lin
  2018-01-25  4:26 ` Zhu, Yonghong
  0 siblings, 1 reply; 2+ messages in thread
From: Gary Lin @ 2018-01-17  4:05 UTC (permalink / raw)
  To: edk2-devel; +Cc: Yonghong Zhu, Liming Gao

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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] BaseTools: Fix indentation
  2018-01-17  4:05 [PATCH] BaseTools: Fix indentation Gary Lin
@ 2018-01-25  4:26 ` Zhu, Yonghong
  0 siblings, 0 replies; 2+ messages in thread
From: Zhu, Yonghong @ 2018-01-25  4:26 UTC (permalink / raw)
  To: Gary Lin, edk2-devel@lists.01.org; +Cc: Gao, Liming, Zhu, Yonghong

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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-25  4:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-17  4:05 [PATCH] BaseTools: Fix indentation Gary Lin
2018-01-25  4:26 ` Zhu, Yonghong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox