From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web09.1105.1581491654329032522 for ; Tue, 11 Feb 2020 23:14:14 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: zhijux.fan@intel.com) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Feb 2020 23:14:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,428,1574150400"; d="dat'59?scan'59,208,59";a="227743218" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga008.fm.intel.com with ESMTP; 11 Feb 2020 23:14:13 -0800 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 11 Feb 2020 23:14:13 -0800 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by SHSMSX605.ccr.corp.intel.com (10.109.6.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 12 Feb 2020 15:14:11 +0800 Received: from shsmsx602.ccr.corp.intel.com ([10.109.6.142]) by SHSMSX602.ccr.corp.intel.com ([10.109.6.142]) with mapi id 15.01.1713.004; Wed, 12 Feb 2020 15:14:11 +0800 From: "Fan, ZhijuX" To: "devel@edk2.groups.io" CC: "Gao, Liming" , "Feng, Bob C" Subject: [Patch] BaseTools: Fixed build failure when using python38 Thread-Topic: [Patch] BaseTools: Fixed build failure when using python38 Thread-Index: AdXhdAAG/AYmpFA/QnW4Sjmj2HCTyQ== Date: Wed, 12 Feb 2020 07:14:11 +0000 Message-ID: <07f8c74b664b461fa806d065a98c7f77@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: <07f8c74b664b461fa806d065a98c7f77@intel.com> dlp-reaction: no-action dlp-version: 11.2.0.6 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] MIME-Version: 1.0 Return-Path: zhijux.fan@intel.com X-Groupsio-MsgNum: 54263 Content-Type: multipart/mixed; boundary="_000_07f8c74b664b461fa806d065a98c7f77intelcom_" Content-Language: en-US --_000_07f8c74b664b461fa806d065a98c7f77intelcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2304 SyntaxWarning: "is" with a literal. Did you mean "=3D=3D"? Using "is" instead of "=3D=3D" is an irregular syntax Signed-off-by: Zhiju.Fan Cc: Bob C Feng Cc: Liming Gao --- BaseTools/Source/Python/build/BuildReport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/Python/build/BuildReport.py b/BaseTools/Sourc= e/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 =3D 0 self.VPDSize =3D 0 for index, FdRegion in enumerate(Fd.RegionList): - if str(FdRegion.RegionType) is 'FILE' and Wa.Platform.VpdToolG= uid in str(FdRegion.RegionDataList): + if str(FdRegion.RegionType) =3D=3D 'FILE' and Wa.Platform.VpdT= oolGuid in str(FdRegion.RegionDataList): self.VPDBaseAddress =3D self.FdRegionList[index].BaseAddre= ss self.VPDSize =3D self.FdRegionList[index].Size break --=20 2.18.0.windows.1 --_000_07f8c74b664b461fa806d065a98c7f77intelcom_ Content-Disposition: attachment; filename="winmail.dat" Content-Transfer-Encoding: base64 Content-Type: application/ms-tnef; name="winmail.dat" eJ8+Imt1AQaQCAAEAAAAAAABAAEAAQeQBgAIAA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b461fa806d065a98c7f77intelcom_--