]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Object/Parser/InfCommonObject.py
BaseTools: Clean up source files
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Object / Parser / InfCommonObject.py
index 217b0941dac4df5810a7b8c46242da649b734783..49be7d9f65c40ea63c9dfc92f0f88d92abee2f16 100644 (file)
@@ -1,12 +1,12 @@
 ## @file\r
-# This file is used to define common class objects for INF file. \r
+# This file is used to define common class objects for INF file.\r
 # It will consumed by InfParser\r
 #\r
-# Copyright (c) 2011, 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
@@ -17,9 +17,9 @@ InfCommonObject
 '''\r
 \r
 ## InfLineCommentObject\r
-#  \r
-#  Comment Object for any line in the INF file \r
-#   \r
+#\r
+#  Comment Object for any line in the INF file\r
+#\r
 #  #\r
 #  # HeaderComment\r
 #  #\r
@@ -29,21 +29,21 @@ class InfLineCommentObject():
     def __init__(self):\r
         self.HeaderComments = ''\r
         self.TailComments = ''\r
-    \r
+\r
     def SetHeaderComments(self, HeaderComments):\r
         self.HeaderComments = HeaderComments\r
-    \r
+\r
     def GetHeaderComments(self):\r
         return self.HeaderComments\r
-    \r
+\r
     def SetTailComments(self, TailComments):\r
         self.TailComments = TailComments\r
 \r
     def GetTailComments(self):\r
-        return self.TailComments   \r
-       \r
+        return self.TailComments\r
+\r
 ## CurrentLine\r
-#    \r
+#\r
 class CurrentLine():\r
     def __init__(self):\r
         self.LineNo = ''\r
@@ -51,48 +51,48 @@ class CurrentLine():
         self.FileName = ''\r
 \r
     ## SetLineNo\r
-    #     \r
-    # @param LineNo: LineNo \r
-    #     \r
+    #\r
+    # @param LineNo: LineNo\r
+    #\r
     def SetLineNo(self, LineNo):\r
         self.LineNo = LineNo\r
-        \r
+\r
     ## GetLineNo\r
-    #         \r
+    #\r
     def GetLineNo(self):\r
         return self.LineNo\r
 \r
     ## SetLineString\r
-    #     \r
-    # @param LineString: Line String content \r
-    #     \r
+    #\r
+    # @param LineString: Line String content\r
+    #\r
     def SetLineString(self, LineString):\r
         self.LineString = LineString\r
-        \r
+\r
     ## GetLineString\r
-    #         \r
+    #\r
     def GetLineString(self):\r
         return self.LineString\r
 \r
     ## SetFileName\r
-    #     \r
+    #\r
     # @param FileName: File Name\r
-    #       \r
+    #\r
     def SetFileName(self, FileName):\r
         self.FileName = FileName\r
-        \r
+\r
     ## GetFileName\r
-    #  \r
+    #\r
     def GetFileName(self):\r
         return self.FileName\r
-    \r
-## \r
+\r
+##\r
 # Inf Section common data\r
 #\r
 class InfSectionCommonDef():\r
     def __init__(self):\r
         #\r
-        # # \r
+        # #\r
         # # HeaderComments at here\r
         # #\r
         # [xxSection] TailComments at here\r
@@ -104,7 +104,7 @@ class InfSectionCommonDef():
         # The support arch list of this section\r
         #\r
         self.SupArchList  = []\r
-        \r
+\r
         #\r
         # Store all section content\r
         # Key is supported Arch\r
@@ -112,51 +112,51 @@ class InfSectionCommonDef():
         self.AllContent   = {}\r
 \r
     ## SetHeaderComments\r
-    #     \r
+    #\r
     # @param HeaderComments: HeaderComments\r
-    #        \r
+    #\r
     def SetHeaderComments(self, HeaderComments):\r
         self.HeaderComments = HeaderComments\r
 \r
     ## GetHeaderComments\r
-    #        \r
+    #\r
     def GetHeaderComments(self):\r
         return self.HeaderComments\r
 \r
     ## SetTailComments\r
-    #     \r
+    #\r
     # @param TailComments: TailComments\r
-    #            \r
+    #\r
     def SetTailComments(self, TailComments):\r
         self.TailComments = TailComments\r
 \r
     ## GetTailComments\r
-    #   \r
+    #\r
     def GetTailComments(self):\r
         return self.TailComments\r
 \r
     ## SetSupArchList\r
-    #     \r
+    #\r
     # @param Arch: Arch\r
-    #         \r
+    #\r
     def SetSupArchList(self, Arch):\r
         if Arch not in self.SupArchList:\r
             self.SupArchList.append(Arch)\r
 \r
     ## GetSupArchList\r
-    #      \r
+    #\r
     def GetSupArchList(self):\r
         return self.SupArchList\r
 \r
     ## SetAllContent\r
-    #     \r
+    #\r
     # @param ArchList: ArchList\r
     # @param Content: Content\r
-    #     \r
+    #\r
     def SetAllContent(self, Content):\r
         self.AllContent = Content\r
-        \r
+\r
     ## GetAllContent\r
-    #     \r
+    #\r
     def GetAllContent(self):\r
         return self.AllContent\r