FvList = self.GetFvList()\r
self.BsfInfName = os.path.join(GenFdsGlobalVariable.FvDir, self.UiName + '.inf')\r
BsfInf = open(self.BsfInfName, 'w+')\r
- if self.ResetBin != None:\r
+ if self.ResetBin is not None:\r
BsfInf.writelines ("[OPTIONS]" + T_CHAR_LF)\r
BsfInf.writelines ("IA32_RST_BIN" + \\r
" = " + \\r
'N' + \\r
T_CHAR_LF)\r
\r
- elif ComponentObj.FilePos != None:\r
+ elif ComponentObj.FilePos is not None:\r
BsfInf.writelines ("COMP_LOC" + \\r
" = " + \\r
ComponentObj.FilePos + \\r