]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Parser/InfGuidPpiProtocolSectionParser.py
BaseTools: Clean up source files
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Parser / InfGuidPpiProtocolSectionParser.py
index 956c116c6e79536e8902c2bc257363ec02ae16fc..75396dd7eb3c94c454b3e4a0eccdee585abe4a46 100644 (file)
@@ -1,11 +1,11 @@
 ## @file\r
-# This file contained the parser for [Guids], [Ppis], [Protocols] sections in INF file \r
+# This file contained the parser for [Guids], [Ppis], [Protocols] sections in INF file\r
 #\r
-# Copyright (c) 2011 - 2017, 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 @@ class InfGuidPpiProtocolSectionParser(InfParserSectionRoot):
     #\r
     def InfGuidParser(self, SectionString, InfSectionObject, FileName):\r
         #\r
-        # Macro defined in this section \r
+        # Macro defined in this section\r
         #\r
         SectionMacros = {}\r
         ValueList = []\r
@@ -88,7 +88,7 @@ class InfGuidPpiProtocolSectionParser(InfParserSectionRoot):
 \r
                 #\r
                 # Replace with Local section Macro and [Defines] section Macro.\r
-                #            \r
+                #\r
                 ValueList = [InfExpandMacro(Value, (FileName, LineContent, LineNo),\r
                                             self.FileLocalMacros, SectionMacros, True)\r
                             for Value in ValueList]\r
@@ -104,7 +104,7 @@ class InfGuidPpiProtocolSectionParser(InfParserSectionRoot):
 \r
         #\r
         # Current section archs\r
-        #    \r
+        #\r
         ArchList = []\r
         LineIndex = -1\r
         for Item in self.LastSectionHeaderContent:\r
@@ -124,7 +124,7 @@ class InfGuidPpiProtocolSectionParser(InfParserSectionRoot):
     #\r
     def InfPpiParser(self, SectionString, InfSectionObject, FileName):\r
         #\r
-        # Macro defined in this section \r
+        # Macro defined in this section\r
         #\r
         SectionMacros = {}\r
         ValueList = []\r
@@ -175,7 +175,7 @@ class InfGuidPpiProtocolSectionParser(InfParserSectionRoot):
 \r
                 #\r
                 # Replace with Local section Macro and [Defines] section Macro.\r
-                #            \r
+                #\r
                 ValueList = [InfExpandMacro(Value, (FileName, LineContent, LineNo), self.FileLocalMacros, SectionMacros)\r
                             for Value in ValueList]\r
 \r
@@ -189,7 +189,7 @@ class InfGuidPpiProtocolSectionParser(InfParserSectionRoot):
 \r
         #\r
         # Current section archs\r
-        #    \r
+        #\r
         ArchList = []\r
         LineIndex = -1\r
         for Item in self.LastSectionHeaderContent:\r
@@ -206,7 +206,7 @@ class InfGuidPpiProtocolSectionParser(InfParserSectionRoot):
 \r
     ## InfUserExtensionParser\r
     #\r
-    #    \r
+    #\r
     def InfUserExtensionParser(self, SectionString, InfSectionObject, FileName):\r
 \r
         UserExtensionContent = ''\r
@@ -226,7 +226,7 @@ class InfGuidPpiProtocolSectionParser(InfParserSectionRoot):
 \r
         #\r
         # Current section UserId, IdString\r
-        #    \r
+        #\r
         IdContentList = []\r
         LastItem = ''\r
         SectionLineNo = None\r
@@ -265,14 +265,14 @@ class InfGuidPpiProtocolSectionParser(InfParserSectionRoot):
                 IdContentList.append((UserId, IdString, Arch))\r
             else:\r
                 #\r
-                # Each UserExtensions section header must have a unique set \r
+                # Each UserExtensions section header must have a unique set\r
                 # of UserId, IdString and Arch values.\r
-                # This means that the same UserId can be used in more than one \r
-                # section header, provided the IdString or Arch values are \r
-                # different. The same IdString values can be used in more than \r
-                # one section header if the UserId or Arch values are \r
-                # different. The same UserId and the same IdString can be used \r
-                # in a section header if the Arch values are different in each \r
+                # This means that the same UserId can be used in more than one\r
+                # section header, provided the IdString or Arch values are\r
+                # different. The same IdString values can be used in more than\r
+                # one section header if the UserId or Arch values are\r
+                # different. The same UserId and the same IdString can be used\r
+                # in a section header if the Arch values are different in each\r
                 # of the section headers.\r
                 #\r
                 Logger.Error('InfParser',\r
@@ -294,7 +294,7 @@ class InfGuidPpiProtocolSectionParser(InfParserSectionRoot):
 \r
     def InfProtocolParser(self, SectionString, InfSectionObject, FileName):\r
         #\r
-        # Macro defined in this section \r
+        # Macro defined in this section\r
         #\r
         SectionMacros = {}\r
         ValueList = []\r
@@ -345,7 +345,7 @@ class InfGuidPpiProtocolSectionParser(InfParserSectionRoot):
 \r
                 #\r
                 # Replace with Local section Macro and [Defines] section Macro.\r
-                #            \r
+                #\r
                 ValueList = [InfExpandMacro(Value, (FileName, LineContent, LineNo), self.FileLocalMacros, SectionMacros)\r
                             for Value in ValueList]\r
 \r
@@ -359,7 +359,7 @@ class InfGuidPpiProtocolSectionParser(InfParserSectionRoot):
 \r
         #\r
         # Current section archs\r
-        #    \r
+        #\r
         ArchList = []\r
         LineIndex = -1\r
         for Item in self.LastSectionHeaderContent:\r