diff options
Diffstat (limited to 'BaseTools/Source/Python/UPT/Parser/InfSourceSectionParser.py')
-rw-r--r-- | BaseTools/Source/Python/UPT/Parser/InfSourceSectionParser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/UPT/Parser/InfSourceSectionParser.py b/BaseTools/Source/Python/UPT/Parser/InfSourceSectionParser.py index 51db796035..645c2c3414 100644 --- a/BaseTools/Source/Python/UPT/Parser/InfSourceSectionParser.py +++ b/BaseTools/Source/Python/UPT/Parser/InfSourceSectionParser.py @@ -86,7 +86,7 @@ class InfSourceSectionParser(InfParserSectionRoot): if SrcLineContent.find(DT.TAB_COMMENT_SPLIT) > -1:
TailComments = SrcLineContent[SrcLineContent.find(DT.TAB_COMMENT_SPLIT):]
SrcLineContent = SrcLineContent[:SrcLineContent.find(DT.TAB_COMMENT_SPLIT)]
- if LineComment == None:
+ if LineComment is None:
LineComment = InfLineCommentObject()
LineComment.SetTailComments(TailComments)
@@ -97,7 +97,7 @@ class InfSourceSectionParser(InfParserSectionRoot): FileName,
DT.MODEL_EFI_SOURCE_FILE,
self.FileLocalMacros)
- if Name != None:
+ if Name is not None:
SectionMacros[Name] = Value
LineComment = None
HeaderComments = []
|