diff options
Diffstat (limited to 'BaseTools/Source/Python/UPT/Parser/InfParserMisc.py')
-rw-r--r-- | BaseTools/Source/Python/UPT/Parser/InfParserMisc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/UPT/Parser/InfParserMisc.py b/BaseTools/Source/Python/UPT/Parser/InfParserMisc.py index a416897d27..6a335e8b6c 100644 --- a/BaseTools/Source/Python/UPT/Parser/InfParserMisc.py +++ b/BaseTools/Source/Python/UPT/Parser/InfParserMisc.py @@ -73,9 +73,9 @@ gINF_SECTION_DEF = { # @param Flag If the flag set to True, need to skip macros in a quoted string
#
def InfExpandMacro(Content, LineInfo, GlobalMacros=None, SectionMacros=None, Flag=False):
- if GlobalMacros == None:
+ if GlobalMacros is None:
GlobalMacros = {}
- if SectionMacros == None:
+ if SectionMacros is None:
SectionMacros = {}
FileName = LineInfo[0]
|