]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/PomAdapter/InfPomAlignmentMisc.py
BaseTools: Clean up source files
[mirror_edk2.git] / BaseTools / Source / Python / UPT / PomAdapter / InfPomAlignmentMisc.py
index 3bb506bea660a92ca4e301a530597ad5eeb5bb15..239078d019a7edcf9eb714a8b47da405153d83ac 100644 (file)
@@ -3,9 +3,9 @@
 #\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
@@ -184,16 +184,16 @@ def GenBinaryData(BinaryData, BinaryObj, BinariesDict, AsBuildIns, BinaryFileObj
         else:\r
             TagName = ''\r
             Family = ''\r
-        \r
+\r
         FFE = ItemObj.GetFeatureFlagExp()\r
 \r
         #\r
         # If have architecturie specified, then use the specified architecturie;\r
         # If the section tag does not have an architecture modifier or the modifier is "common" (case in-sensitive),\r
-        # and the VALID_ARCHITECTURES comment exists, the list from the VALID_ARCHITECTURES comment \r
+        # and the VALID_ARCHITECTURES comment exists, the list from the VALID_ARCHITECTURES comment\r
         # can be used for the attribute.\r
         # If both not have VALID_ARCHITECTURE comment and no architecturie specified, then keep it empty.\r
-        #        \r
+        #\r
         SupArchList = sorted(ConvertArchList(ItemObj.GetSupArchList()))\r
         if len(SupArchList) == 1 and SupArchList[0] == 'COMMON':\r
             if not (len(OriSupArchList) == 1 or OriSupArchList[0] == 'COMMON'):\r
@@ -208,7 +208,7 @@ def GenBinaryData(BinaryData, BinaryObj, BinariesDict, AsBuildIns, BinaryFileObj
         #\r
         # Get GUID value of the GUID CName in the DEC file\r
         #\r
-        if ItemObj.GetType() == DT.SUBTYPE_GUID_BINARY_FILE_TYPE:                \r
+        if ItemObj.GetType() == DT.SUBTYPE_GUID_BINARY_FILE_TYPE:\r
             if not CheckGuidRegFormat(ItemObj.GetGuidValue()):\r
                 if not DecObjList:\r
                     if DT.TAB_HORIZON_LINE_SPLIT in ItemObj.GetGuidValue() or \\r
@@ -231,12 +231,12 @@ def GenBinaryData(BinaryData, BinaryObj, BinariesDict, AsBuildIns, BinaryFileObj
                                 FileNameObj.SetGuidValue(GuidObj.GetGuid())\r
                                 break\r
 \r
-                    if not FileNameObj.GetGuidValue():                        \r
+                    if not FileNameObj.GetGuidValue():\r
                         Logger.Error("\nMkPkg",\r
                                          FORMAT_INVALID,\r
                                          ST.ERR_DECPARSE_CGUID_NOT_FOUND % \\r
                                          (ItemObj.GetGuidValue()),\r
-                                         RaiseError=True)  \r
+                                         RaiseError=True)\r
             else:\r
                 FileNameObj.SetGuidValue(ItemObj.GetGuidValue().strip())\r
 \r