]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Parser/InfLibrarySectionParser.py
BaseTools: Clean up source files
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Parser / InfLibrarySectionParser.py
index 549e67f08d64fbef15c6c81d4a67b771d55bacd7..1a7014436f81e024bc774671f57b5c218f7b3c43 100644 (file)
@@ -1,11 +1,11 @@
 ## @file\r
-# This file contained the parser for [Libraries] sections in INF file \r
+# This file contained the parser for [Libraries] sections in INF file\r
 #\r
-# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
-# This program and the accompanying materials are licensed and made available \r
-# under the terms and conditions of the BSD License which accompanies this \r
-# distribution. The full text of the license may be found at \r
+# This program and the accompanying materials are licensed and made available\r
+# under the terms and conditions of the BSD License which accompanies this\r
+# distribution. The full text of the license may be found at\r
 # http://opensource.org/licenses/bsd-license.php\r
 #\r
 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
@@ -34,14 +34,14 @@ from Parser.InfParserMisc import InfParserSectionRoot
 class InfLibrarySectionParser(InfParserSectionRoot):\r
     ## InfLibraryParser\r
     #\r
-    #                 \r
+    #\r
     def InfLibraryParser(self, SectionString, InfSectionObject, FileName):\r
         #\r
         # For Common INF file\r
         #\r
         if not GlobalData.gIS_BINARY_INF:\r
             #\r
-            # Macro defined in this section \r
+            # Macro defined in this section\r
             #\r
             SectionMacros = {}\r
             ValueList = []\r
@@ -60,7 +60,7 @@ class InfLibrarySectionParser(InfParserSectionRoot):
                     continue\r
 \r
                 #\r
-                # Found Header Comments \r
+                # Found Header Comments\r
                 #\r
                 if LibLineContent.strip().startswith(DT.TAB_COMMENT_SPLIT):\r
                     #\r
@@ -70,7 +70,7 @@ class InfLibrarySectionParser(InfParserSectionRoot):
                         LibHeaderComments.append(Line)\r
                         continue\r
                     #\r
-                    # First time encounter comment \r
+                    # First time encounter comment\r
                     #\r
                     else:\r
                         #\r
@@ -118,7 +118,7 @@ class InfLibrarySectionParser(InfParserSectionRoot):
 \r
                 #\r
                 # Replace with Local section Macro and [Defines] section Macro.\r
-                #            \r
+                #\r
                 ValueList = [InfExpandMacro(Value, (FileName, LibLineContent, LibLineNo),\r
                                             self.FileLocalMacros, SectionMacros, True)\r
                                             for Value in ValueList]\r
@@ -134,7 +134,7 @@ class InfLibrarySectionParser(InfParserSectionRoot):
 \r
             #\r
             # Current section archs\r
-            #    \r
+            #\r
             KeyList = []\r
             for Item in self.LastSectionHeaderContent:\r
                 if (Item[1], Item[2]) not in KeyList:\r
@@ -188,7 +188,7 @@ class InfLibrarySectionParser(InfParserSectionRoot):
 \r
         #\r
         # Current section archs\r
-        #    \r
+        #\r
         KeyList = []\r
         Item = ['', '', '']\r
         for Item in self.LastSectionHeaderContent:\r