]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Xml/CommonXml.py
BaseTools: Clean up source files
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Xml / CommonXml.py
index 8a8cce169626559ab28518e853b3e2c8adfccae1..94fb087d1ce636594a29f97d105b5b246822318b 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
@@ -123,7 +123,7 @@ class PromptXml(object):
         return CreateXmlElement('%s' % Key, Prompt.GetString(), [], [['Lang', Prompt.GetLang()]])\r
     def __str__(self):\r
         return "Prompt = %s Lang = %s" % (self.Prompt, self.Lang)\r
-        \r
+\r
 ##\r
 # HelpTextXml\r
 #\r
@@ -184,7 +184,7 @@ class HeaderXml(object):
             self.CopyrightList.append((HeaderCopyrightLang, XmlElement(SubItem, '%s/Copyright' % Key)))\r
         for SubItem in XmlList(Item, '%s/License' % Key):\r
             HeaderLicenseLang = XmlAttribute(SubItem, 'Lang')\r
-            self.LicenseList.append((HeaderLicenseLang, XmlElement(SubItem, '%s/License' % Key)))    \r
+            self.LicenseList.append((HeaderLicenseLang, XmlElement(SubItem, '%s/License' % Key)))\r
         ModuleHeader = ModuleObject()\r
         ModuleHeader.SetName(self.Name)\r
         ModuleHeader.SetBaseName(self.BaseName)\r
@@ -379,7 +379,7 @@ class PackageHeaderXml(object):
         NodeList = [Element1,\r
                     Element2\r
                     ]\r
-        \r
+\r
         UNIPackageAbrstractList = []\r
         UNIPackageDescriptionList = []\r
         # Get Abstract and Description from Uni File\r
@@ -391,11 +391,11 @@ class PackageHeaderXml(object):
                     if not StringDefClassObject.StringValue:\r
                         continue\r
                     if StringDefClassObject.StringName == DataType.TAB_DEC_PACKAGE_ABSTRACT:\r
-                        UNIPackageAbrstractList.append((GetLanguageCode1766(Lang), \r
+                        UNIPackageAbrstractList.append((GetLanguageCode1766(Lang),\r
                                                         ConvertSpecialUnicodes(StringDefClassObject.StringValue)))\r
 \r
                     if StringDefClassObject.StringName == DataType.TAB_DEC_PACKAGE_DESCRIPTION:\r
-                        UNIPackageDescriptionList.append((GetLanguageCode1766(Lang), \r
+                        UNIPackageDescriptionList.append((GetLanguageCode1766(Lang),\r
                                                           ConvertSpecialUnicodes(StringDefClassObject.StringValue)))\r
 \r
         # Get Abstract and Description from DEC File Header\r
@@ -411,7 +411,7 @@ class PackageHeaderXml(object):
         for (Lang, Value) in PackageObject2.GetDescription() + UNIPackageDescriptionList:\r
             if Value:\r
                 NodeList.append(CreateXmlElement(DataType.TAB_HEADER_DESCRIPTION, Value, [], [['Lang', Lang]]))\r
-        \r
+\r
 \r
         NodeList.append(['PackagePath', PackageObject2.GetPackagePath()])\r
         AttributeList = []\r
@@ -617,16 +617,16 @@ class UserExtensionsXml(object):
                 self.BinaryAbstractList.append((BinaryAbstractLang, XmlElement(SubItem, '%s/BinaryAbstract' % Key)))\r
             for SubItem in XmlList(Item, '%s/BinaryDescription' % Key):\r
                 BinaryDescriptionLang = XmlAttribute(SubItem, 'Lang')\r
-                self.BinaryDescriptionList.append((BinaryDescriptionLang, \r
+                self.BinaryDescriptionList.append((BinaryDescriptionLang,\r
                                                        XmlElement(SubItem, '%s/BinaryDescription' % Key)))\r
             for SubItem in XmlList(Item, '%s/BinaryCopyright' % Key):\r
                 BinaryCopyrightLang = XmlAttribute(SubItem, 'Lang')\r
-                self.BinaryCopyrightList.append((BinaryCopyrightLang, \r
+                self.BinaryCopyrightList.append((BinaryCopyrightLang,\r
                                                      XmlElement(SubItem, '%s/BinaryCopyright' % Key)))\r
             for SubItem in XmlList(Item, '%s/BinaryLicense' % Key):\r
                 BinaryLicenseLang = XmlAttribute(SubItem, 'Lang')\r
-                self.BinaryLicenseList.append((BinaryLicenseLang, \r
-                                                   XmlElement(SubItem, '%s/BinaryLicense' % Key)))   \r
+                self.BinaryLicenseList.append((BinaryLicenseLang,\r
+                                                   XmlElement(SubItem, '%s/BinaryLicense' % Key)))\r
 \r
         DefineItem = XmlNode(Item, '%s/Define' % Key)\r
         for SubItem in XmlList(DefineItem, 'Define/Statement'):\r
@@ -697,7 +697,7 @@ class UserExtensionsXml(object):
                 if Value:\r
                     ChildElement = CreateXmlElement('BinaryLicense', Value, [], [])\r
                     Root.appendChild(ChildElement)\r
-                    \r
+\r
         NodeList = []\r
         DefineDict = UserExtension.GetDefinesDict()\r
         if DefineDict:\r
@@ -976,7 +976,7 @@ class FilenameXml(object):
         #\r
         if self.FileType == 'UEFI_IMAGE':\r
             self.FileType = 'PE32'\r
-        \r
+\r
         Filename.SetGuidValue(Guid)\r
         Filename.SetFileType(self.FileType)\r
         Filename.SetFilename(self.Filename)\r