From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web10.2101.1581496915484161061 for ; Wed, 12 Feb 2020 00:41:55 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: bob.c.feng@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Feb 2020 00:41:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,428,1574150400"; d="scan'208";a="406227861" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga005.jf.intel.com with ESMTP; 12 Feb 2020 00:41:54 -0800 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 12 Feb 2020 00:41:54 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX606.ccr.corp.intel.com (10.109.6.216) 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 16:41:52 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.1713.004; Wed, 12 Feb 2020 16:41:52 +0800 From: "Bob Feng" To: "Fan, ZhijuX" , "devel@edk2.groups.io" CC: "Gao, Liming" Subject: Re: [Patch] BaseTools: Fixed build failure when using python38 Thread-Topic: [Patch] BaseTools: Fixed build failure when using python38 Thread-Index: AdXhdAAG/AYmpFA/QnW4Sjmj2HCTyQAC9FRw Date: Wed, 12 Feb 2020 08:41:52 +0000 Message-ID: References: <07f8c74b664b461fa806d065a98c7f77@intel.com> In-Reply-To: <07f8c74b664b461fa806d065a98c7f77@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiM2U5NDgzZDctY2MxMC00YjM3LWE4NjYtODUxNWFlYjVkNGM2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiY2ZRckp0dE1kc1NkWGtvK3F1dGRCY1pqeVJ1eWtjSzVzQ0VMSDYwQzcyZHM0bDlRUmVsVGdVWjZ0RHBOWndocyJ9 dlp-version: 11.2.0.6 dlp-product: dlpe-windows x-ctpclassification: CTP_NT dlp-reaction: no-action x-originating-ip: [10.239.127.36] MIME-Version: 1.0 Return-Path: bob.c.feng@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Bob C Feng -----Original Message----- From: Fan, ZhijuX =20 Sent: Wednesday, February 12, 2020 3:14 PM To: devel@edk2.groups.io Cc: Gao, Liming ; Feng, Bob C Subject: [Patch] BaseTools: Fixed build failure when using python38 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