if not os.path.exists(os.path.dirname(ModuleObject.GetFullPath())):\r
os.makedirs(os.path.dirname(ModuleObject.GetFullPath()))\r
\r
- Content = UniFileHeader + '\n'\r
- Content += '\n'\r
+ Content = UniFileHeader + '\r\n'\r
+ Content += '\r\n'\r
\r
- Content += FormatUniEntry('#string ' + DT.TAB_INF_ABSTRACT, ModuleObject.GetAbstract(), ContainerFile) + '\n'\r
+ Content += FormatUniEntry('#string ' + DT.TAB_INF_ABSTRACT, ModuleObject.GetAbstract(), ContainerFile) + '\r\n'\r
\r
Content += FormatUniEntry('#string ' + DT.TAB_INF_DESCRIPTION, ModuleObject.GetDescription(), ContainerFile) \\r
- + '\n'\r
+ + '\r\n'\r
\r
BinaryAbstractString = FormatUniEntry('#string ' + DT.TAB_INF_BINARY_ABSTRACT, BinaryAbstract, ContainerFile)\r
if BinaryAbstractString:\r
- Content += BinaryAbstractString + '\n'\r
+ Content += BinaryAbstractString + '\r\n'\r
\r
BinaryDescriptionString = FormatUniEntry('#string ' + DT.TAB_INF_BINARY_DESCRIPTION, BinaryDescription, \\r
ContainerFile)\r
if BinaryDescriptionString:\r
- Content += BinaryDescriptionString + '\n'\r
+ Content += BinaryDescriptionString + '\r\n'\r
\r
if not os.path.exists(ContainerFile):\r
File = codecs.open(ContainerFile, 'wb', Encoding)\r
if not DefinesDict:\r
continue\r
for Statement in DefinesDict:\r
- if len(Statement.split(DT.TAB_EQUAL_SPLIT)) > 1:\r
+ if Statement.split(DT.TAB_EQUAL_SPLIT) > 1:\r
Statement = (u'%s ' % Statement.split(DT.TAB_EQUAL_SPLIT, 1)[0]).ljust(LeftOffset) \\r
+ u'= %s' % Statement.split(DT.TAB_EQUAL_SPLIT, 1)[1].lstrip()\r
SortedArch = DT.TAB_ARCH_COMMON\r
Statement += '|' + FFE\r
ModuleList = LibraryClass.GetSupModuleList()\r
ArchList = LibraryClass.GetSupArchList()\r
- for Index in range(0, len(ArchList)):\r
+ for Index in xrange(0, len(ArchList)):\r
ArchList[Index] = ConvertArchForInstall(ArchList[Index])\r
ArchList.sort()\r
SortedArch = ' '.join(ArchList)\r
# if not Statement:\r
# continue\r
ArchList = UserExtension.GetSupArchList()\r
- for Index in range(0, len(ArchList)):\r
+ for Index in xrange(0, len(ArchList)):\r
ArchList[Index] = ConvertArchForInstall(ArchList[Index])\r
ArchList.sort()\r
KeyList = []\r