From f7496d717357b9af78414d19679b073403812340 Mon Sep 17 00:00:00 2001 From: Liming Gao Date: Thu, 5 Jul 2018 17:40:04 +0800 Subject: BaseTools: Clean up source files 1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao Cc: Yonghong Zhu Reviewed-by: Yonghong Zhu --- .../Python/UPT/Parser/InfLibrarySectionParser.py | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'BaseTools/Source/Python/UPT/Parser/InfLibrarySectionParser.py') diff --git a/BaseTools/Source/Python/UPT/Parser/InfLibrarySectionParser.py b/BaseTools/Source/Python/UPT/Parser/InfLibrarySectionParser.py index 549e67f08d..1a7014436f 100644 --- a/BaseTools/Source/Python/UPT/Parser/InfLibrarySectionParser.py +++ b/BaseTools/Source/Python/UPT/Parser/InfLibrarySectionParser.py @@ -1,11 +1,11 @@ ## @file -# This file contained the parser for [Libraries] sections in INF file +# This file contained the parser for [Libraries] sections in INF file # -# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.
# -# This program and the accompanying materials are licensed and made available -# under the terms and conditions of the BSD License which accompanies this -# distribution. The full text of the license may be found at +# This program and the accompanying materials are licensed and made available +# under the terms and conditions of the BSD License which accompanies this +# distribution. The full text of the license may be found at # http://opensource.org/licenses/bsd-license.php # # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, @@ -34,14 +34,14 @@ from Parser.InfParserMisc import InfParserSectionRoot class InfLibrarySectionParser(InfParserSectionRoot): ## InfLibraryParser # - # + # def InfLibraryParser(self, SectionString, InfSectionObject, FileName): # # For Common INF file # if not GlobalData.gIS_BINARY_INF: # - # Macro defined in this section + # Macro defined in this section # SectionMacros = {} ValueList = [] @@ -60,7 +60,7 @@ class InfLibrarySectionParser(InfParserSectionRoot): continue # - # Found Header Comments + # Found Header Comments # if LibLineContent.strip().startswith(DT.TAB_COMMENT_SPLIT): # @@ -70,7 +70,7 @@ class InfLibrarySectionParser(InfParserSectionRoot): LibHeaderComments.append(Line) continue # - # First time encounter comment + # First time encounter comment # else: # @@ -118,7 +118,7 @@ class InfLibrarySectionParser(InfParserSectionRoot): # # Replace with Local section Macro and [Defines] section Macro. - # + # ValueList = [InfExpandMacro(Value, (FileName, LibLineContent, LibLineNo), self.FileLocalMacros, SectionMacros, True) for Value in ValueList] @@ -134,7 +134,7 @@ class InfLibrarySectionParser(InfParserSectionRoot): # # Current section archs - # + # KeyList = [] for Item in self.LastSectionHeaderContent: if (Item[1], Item[2]) not in KeyList: @@ -188,7 +188,7 @@ class InfLibrarySectionParser(InfParserSectionRoot): # # Current section archs - # + # KeyList = [] Item = ['', '', ''] for Item in self.LastSectionHeaderContent: -- cgit v1.2.3