mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
82af1cbf0d
commit
ec97412b7c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue