if BinLineContent.find(DT.TAB_COMMENT_SPLIT) > -1:\r
TailComments = BinLineContent[BinLineContent.find(DT.TAB_COMMENT_SPLIT):]\r
BinLineContent = BinLineContent[:BinLineContent.find(DT.TAB_COMMENT_SPLIT)]\r
- if LineComment == None:\r
+ if LineComment is None:\r
LineComment = InfLineCommentObject()\r
LineComment.SetTailComments(TailComments) \r
\r
FileName,\r
DT.MODEL_EFI_BINARY_FILE,\r
self.FileLocalMacros)\r
- if MacroDef[0] != None:\r
+ if MacroDef[0] is not None:\r
SectionMacros[MacroDef[0]] = MacroDef[1]\r
LineComment = None\r
HeaderComments = [] \r