]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/GenMetaFile/GenMetaFileMisc.py
BaseTools: Clean up source files
[mirror_edk2.git] / BaseTools / Source / Python / UPT / GenMetaFile / GenMetaFileMisc.py
index ae8dc85e3e64576127d06b040f8b28068e6b9779..da3972ccc33badc5ef2efe4127f12a6f569acccb 100644 (file)
@@ -2,11 +2,11 @@
 #\r
 # This file contained the miscellaneous routines for GenMetaFile usage.\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
@@ -26,7 +26,7 @@ from Parser.DecParser import Dec
 #  @param SectionDict: string of source file path/name\r
 #  @param Arch:     string of source file family field\r
 #  @param ExternList:  string of source file FeatureFlag field\r
-#   \r
+#\r
 def AddExternToDefineSec(SectionDict, Arch, ExternList):\r
     LeftOffset = 31\r
     for ArchList, EntryPoint, UnloadImage, Constructor, Destructor, FFE, HelpStringList in ExternList:\r
@@ -93,7 +93,7 @@ def ObtainPcdName(Packages, TokenSpaceGuidValue, Token):
         Path = None\r
         #\r
         # find package path/name\r
-        # \r
+        #\r
         for PkgInfo in GlobalData.gWSPKG_LIST:\r
             if Guid == PkgInfo[1]:\r
                 if (not Version) or (Version == PkgInfo[2]):\r
@@ -156,9 +156,9 @@ def ObtainPcdName(Packages, TokenSpaceGuidValue, Token):
     return TokenSpaceGuidName, PcdCName\r
 \r
 ## _TransferDict\r
-#  transfer dict that using (Statement, SortedArch) as key, \r
+#  transfer dict that using (Statement, SortedArch) as key,\r
 #  (GenericComment, UsageComment) as value into a dict that using SortedArch as\r
-#  key and NewStatement as value \r
+#  key and NewStatement as value\r
 #\r
 def TransferDict(OrigDict, Type=None):\r
     NewDict = {}\r
@@ -171,7 +171,7 @@ def TransferDict(OrigDict, Type=None):
         for Statement, SortedArch in OrigDict:\r
             if len(Statement) > LeftOffset:\r
                 LeftOffset = len(Statement)\r
-        \r
+\r
     for Statement, SortedArch in OrigDict:\r
         Comment = OrigDict[Statement, SortedArch]\r
         #\r