]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Fixed build failure when using python38
authorFan, ZhijuX <zhijux.fan@intel.com>
Wed, 12 Feb 2020 07:14:11 +0000 (15:14 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 12 Feb 2020 14:54:03 +0000 (14:54 +0000)
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>
BaseTools/Source/Python/build/BuildReport.py

index 880459d3679eebd294a8fc685deadddf01973a3c..8efa869162d4d12d47a7ed951a56802b61e01a51 100644 (file)
@@ -2042,7 +2042,7 @@ class FdReport(object):
         self.VPDBaseAddress = 0\r
         self.VPDSize = 0\r
         for index, FdRegion in enumerate(Fd.RegionList):\r
-            if str(FdRegion.RegionType) is 'FILE' and Wa.Platform.VpdToolGuid in str(FdRegion.RegionDataList):\r
+            if str(FdRegion.RegionType) == 'FILE' and Wa.Platform.VpdToolGuid in str(FdRegion.RegionDataList):\r
                 self.VPDBaseAddress = self.FdRegionList[index].BaseAddress\r
                 self.VPDSize = self.FdRegionList[index].Size\r
                 break\r