]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Object/Parser/InfLibraryClassesObject.py
BaseTools: Clean up source files
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Object / Parser / InfLibraryClassesObject.py
index 5de1832b71fae9283f0be8b2977ef4bf145cc314..82eca12395be74d18f53cc8669e952ded093c754 100644 (file)
@@ -1,12 +1,12 @@
 ## @file\r
-# This file is used to define class objects of INF file [LibraryClasses] section. \r
-# It will consumed by InfParser. \r
+# This file is used to define class objects of INF file [LibraryClasses] section.\r
+# It will consumed by InfParser.\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
@@ -37,7 +37,7 @@ def GetArchModuleType(KeyList):
     for (ArchItem, ModuleItem) in KeyList:\r
         #\r
         # Validate Arch\r
-        #            \r
+        #\r
         if (ArchItem == '' or ArchItem is None):\r
             ArchItem = 'COMMON'\r
 \r
@@ -118,7 +118,7 @@ class InfLibraryClassObject():
 \r
     ##SetLibraryClasses\r
     #\r
-    # \r
+    #\r
     # @param HelpString:     It can be a common comment or contain a recommend\r
     #                        instance.\r
     #\r
@@ -173,7 +173,7 @@ class InfLibraryClassObject():
                                      Line=LibItemObj.CurrentLine.GetLineNo(),\r
                                      ExtraData=LibItemObj.CurrentLine.GetLineString())\r
                     #\r
-                    # Validate FFE    \r
+                    # Validate FFE\r
                     #\r
                     FeatureFlagRtv = IsValidFeatureFlagExp(LibItem[1].strip())\r
                     if not FeatureFlagRtv[0]:\r
@@ -202,15 +202,15 @@ class InfLibraryClassObject():
                 #\r
                 # Determine Library class duplicate. Follow below rule:\r
                 #\r
-                # A library class keyword must not be duplicated within a \r
-                # [LibraryClasses] section. Library class keywords may appear in \r
-                # multiple architectural and module type [LibraryClasses] sections. \r
-                # A library class keyword listed in an architectural or module type \r
-                # [LibraryClasses] section must not be listed in the common \r
+                # A library class keyword must not be duplicated within a\r
+                # [LibraryClasses] section. Library class keywords may appear in\r
+                # multiple architectural and module type [LibraryClasses] sections.\r
+                # A library class keyword listed in an architectural or module type\r
+                # [LibraryClasses] section must not be listed in the common\r
                 # architectural or module type [LibraryClasses] section.\r
-                # \r
+                #\r
                 # NOTE: This check will not report error now. But keep code for future enhancement.\r
-                # \r
+                #\r
 #                for Item in self.LibraryClasses:\r
 #                    if Item.GetLibName() == LibItemObj.GetLibName():\r
 #                        ItemSupArchList = Item.GetSupArchList()\r