summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/build/BuildReport.py
diff options
context:
space:
mode:
authorFan, ZhijuX <zhijux.fan@intel.com>2020-02-12 15:14:11 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-02-12 14:54:03 +0000
commitec97412b7c413573a681e275d55f50dea490fb24 (patch)
treef1764e8f6bbdf3e082546a414b8e4bae489407d1 /BaseTools/Source/Python/build/BuildReport.py
parent82af1cbf0d54bb197a4381e7d7ff1c120e4a9645 (diff)
downloadedk2-ec97412b7c413573a681e275d55f50dea490fb24.tar.gz
edk2-ec97412b7c413573a681e275d55f50dea490fb24.tar.bz2
edk2-ec97412b7c413573a681e275d55f50dea490fb24.zip
BaseTools: Fixed build failure when using python38
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2304 SyntaxWarning: "is" with a literal. Did you mean "=="? Using "is" instead of "==" is an irregular syntax Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Cc: Bob C Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/build/BuildReport.py')
-rw-r--r--BaseTools/Source/Python/build/BuildReport.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/build/BuildReport.py b/BaseTools/Source/Python/build/BuildReport.py
index 880459d367..8efa869162 100644
--- a/BaseTools/Source/Python/build/BuildReport.py
+++ b/BaseTools/Source/Python/build/BuildReport.py
@@ -2042,7 +2042,7 @@ class FdReport(object):
self.VPDBaseAddress = 0
self.VPDSize = 0
for index, FdRegion in enumerate(Fd.RegionList):
- if str(FdRegion.RegionType) is 'FILE' and Wa.Platform.VpdToolGuid in str(FdRegion.RegionDataList):
+ if str(FdRegion.RegionType) == 'FILE' and Wa.Platform.VpdToolGuid in str(FdRegion.RegionDataList):
self.VPDBaseAddress = self.FdRegionList[index].BaseAddress
self.VPDSize = self.FdRegionList[index].Size
break