#\r
def GenSection(self, OutputPath, ModuleName, SecNum, KeyStringList, FfsInf = None, Dict = {}, IsMakefile = False):\r
\r
- if FfsInf != None:\r
+ if FfsInf is not None:\r
self.CompType = FfsInf.__ExtendMacro__(self.CompType)\r
self.Alignment = FfsInf.__ExtendMacro__(self.Alignment)\r
\r
Index = Index + 1\r
SecIndex = '%s.%d' %(SecNum, Index)\r
ReturnSectList, AlignValue = Sect.GenSection(OutputPath, ModuleName, SecIndex, KeyStringList, FfsInf, Dict, IsMakefile=IsMakefile)\r
- if AlignValue != None:\r
- if MaxAlign == None:\r
+ if AlignValue is not None:\r
+ if MaxAlign is None:\r
MaxAlign = AlignValue\r
if GenFdsGlobalVariable.GetAlignment (AlignValue) > GenFdsGlobalVariable.GetAlignment (MaxAlign):\r
MaxAlign = AlignValue\r
if ReturnSectList != []:\r
- if AlignValue == None:\r
+ if AlignValue is None:\r
AlignValue = "1"\r
for FileData in ReturnSectList:\r
SectFiles += (FileData,)\r