diff options
Diffstat (limited to 'BaseTools/Source/Python/GenFds/VerSection.py')
-rw-r--r-- | BaseTools/Source/Python/GenFds/VerSection.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/GenFds/VerSection.py b/BaseTools/Source/Python/GenFds/VerSection.py index e29029980f..11e974b993 100644 --- a/BaseTools/Source/Python/GenFds/VerSection.py +++ b/BaseTools/Source/Python/GenFds/VerSection.py @@ -52,7 +52,7 @@ class VerSection (VerSectionClassObject): #
# Prepare the parameter of GenSection
#
- if FfsInf != None:
+ if FfsInf is not None:
self.Alignment = FfsInf.__ExtendMacro__(self.Alignment)
self.BuildNum = FfsInf.__ExtendMacro__(self.BuildNum)
self.StringData = FfsInf.__ExtendMacro__(self.StringData)
@@ -64,9 +64,9 @@ class VerSection (VerSectionClassObject): # Get String Data
StringData = ''
- if self.StringData != None:
+ if self.StringData is not None:
StringData = self.StringData
- elif self.FileName != None:
+ elif self.FileName is not None:
FileNameStr = GenFdsGlobalVariable.ReplaceWorkspaceMacro(self.FileName)
FileNameStr = GenFdsGlobalVariable.MacroExtend(FileNameStr, Dict)
FileObj = open(FileNameStr, 'r')
|