diff options
Diffstat (limited to 'BaseTools/Source/Python/GenFds/DataSection.py')
-rw-r--r-- | BaseTools/Source/Python/GenFds/DataSection.py | 4 |
1 files changed, 2 insertions, 2 deletions
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:
|