X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FGenFds%2FDataSection.py;h=40e345eee77e92267015b2f0e467ddac22e46110;hp=2d2975f75c0f5ae0ba8509a9cf6e836fcc9a6fdf;hb=4231a8193ec0d52df7e0a101d96c51b1a2b7a996;hpb=05a32984ab799a564e2eeb7dff128fe0992910d8 diff --git a/BaseTools/Source/Python/GenFds/DataSection.py b/BaseTools/Source/Python/GenFds/DataSection.py index 2d2975f75c..40e345eee7 100644 --- a/BaseTools/Source/Python/GenFds/DataSection.py +++ b/BaseTools/Source/Python/GenFds/DataSection.py @@ -52,7 +52,7 @@ class DataSection (DataSectionClassObject): # # Prepare the parameter of GenSection # - if FfsFile != None: + if FfsFile is not None: self.SectFileName = GenFdsGlobalVariable.ReplaceWorkspaceMacro(self.SectFileName) self.SectFileName = GenFdsGlobalVariable.MacroExtend(self.SectFileName, Dict, FfsFile.CurrentArch) else: @@ -92,7 +92,7 @@ class DataSection (DataSectionClassObject): NoStrip = True if self.SecType in ('TE', 'PE32'): - if self.KeepReloc != None: + if self.KeepReloc is not None: NoStrip = self.KeepReloc if not NoStrip: