X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FGenFds%2FVerSection.py;h=11e974b9936e8435005d18841ba51cee480709e8;hp=e29029980fad02db8fa36ca9014b4f0609e40fc8;hb=4231a8193ec0d52df7e0a101d96c51b1a2b7a996;hpb=05a32984ab799a564e2eeb7dff128fe0992910d8 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')