From nobody Mon Feb 9 03:13:48 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+51549+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+51549+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1575308009; cv=none; d=zohomail.com; s=zohoarc; b=Bg2yDLfCDE/enfO0P64K+z+6W0vpJ834PoA7lkRS8rCu0gn9dXkj7qR0yGUslLUEVMOGGcQHnlKDZfhxGm1MPVi3nqx3Y85R7KzzDgfmGIIXJCiifzGrvUHIIVDeI4YPR7VyAN69qNUQ0ilCDOCkAPBddvA6BjnNhYpYbANxWuo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1575308009; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=hpz+IfBR3T5kTSMaie/hFqZwkMWP6DyZw6Vs82854Pw=; b=PBgEOHPumcFL6DiO2jMFnb6fNU5AzibPcoyDAtIGBJMoyf0MAYlfWZRcbgqfy2n1KjvUMRAabIrHUt+yxcl6/nzMr/c4UmOzk4oSj1N6IanXqXDPABGFBz8rCRua9ahw8Dz6jhO1B4PeDiO4VmSyqiSGmngXqMCDIGhUEHj0fcE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+51549+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1575308009674500.85715141583523; Mon, 2 Dec 2019 09:33:29 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id aaaaYY1788612xaaaaaaaaaa; Mon, 02 Dec 2019 09:33:29 -0800 X-Received: from us-smtp-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.61]) by mx.groups.io with SMTP id smtpd.web12.4498.1575308008197809981 for ; Mon, 02 Dec 2019 09:33:28 -0800 X-Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-150-ELbdsynCOYSWx3l_vEqSDw-1; Mon, 02 Dec 2019 12:33:26 -0500 X-Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D1CA0107ACCA; Mon, 2 Dec 2019 17:33:24 +0000 (UTC) X-Received: from x1w.redhat.com (ovpn-204-21.brq.redhat.com [10.40.204.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EBFA419C68; Mon, 2 Dec 2019 17:33:18 +0000 (UTC) From: =?UTF-8?B?UGhpbGlwcGUgTWF0aGlldS1EYXVkw6k=?= To: devel@edk2.groups.io Cc: Sean Brogan , "Zhiju . Fan" , Bob Feng , Bret Barkelew , Liming Gao , Michael D Kinney , Philippe Mathieu-Daude Subject: [edk2-devel] [PATCH 1/2] BaseTools: Avoid "is" with a literal Python 3.8 warnings Date: Mon, 2 Dec 2019 18:33:08 +0100 Message-Id: <20191202173309.10411-2-philmd@redhat.com> In-Reply-To: <20191202173309.10411-1-philmd@redhat.com> References: <20191202173309.10411-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-MC-Unique: ELbdsynCOYSWx3l_vEqSDw-1 X-Mimecast-Spam-Score: 0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,philmd@redhat.com X-Gm-Message-State: aaaaaaaaaaaaaaaaaaaaaaaax1787277AA= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1575308009; bh=GjjHwNHzZNaqb0G//zVC93VVmfi8hjWHsUJHv1VfioE=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=tW5L+8VN9wm97os2IG1ctYCcp0dHPGEXJDcjHhEbBL5qkf8rjHkZ5mtdwH2fsGpsrjQ dzVhUEgMsFqNNC+YA7AEuHNHx3VEhFEcWl4gYEUkCffGrBtfgBgOFvu38yTuQrkfmN4BI W8h/CV8GcDeSjSFOL0yNzxg9JJvi/qA8iwI= X-ZohoMail-DKIM: pass (identity @groups.io) The following statement produces a SyntaxWarning with Python 3.8: if str(FdRegion.RegionType) is 'FILE' and self.Platform.VpdToolGuid in st= r(FdRegion.RegionDataList): BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py:168: SyntaxWarning: "= is" with a literal. Did you mean "=3D=3D"? Change the 'is' operator by the conventional '=3D=3D' comparator. Signed-off-by: Philippe Mathieu-Daude Reviewed-by: Bob Feng --- BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py b/BaseTool= s/Source/Python/AutoGen/WorkspaceAutoGen.py index fde48b4b2788..ec0c25bd1487 100644 --- a/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py +++ b/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py @@ -165,7 +165,7 @@ class WorkspaceAutoGen(AutoGen): if Fdf.CurrentFdName and Fdf.CurrentFdName in Fdf.Profile.FdDi= ct: FdDict =3D Fdf.Profile.FdDict[Fdf.CurrentFdName] for FdRegion in FdDict.RegionList: - if str(FdRegion.RegionType) is 'FILE' and self.Platfor= m.VpdToolGuid in str(FdRegion.RegionDataList): + if str(FdRegion.RegionType) =3D=3D 'FILE' and self.Pla= tform.VpdToolGuid in str(FdRegion.RegionDataList): if int(FdRegion.Offset) % 8 !=3D 0: EdkLogger.error("build", FORMAT_INVALID, 'The = VPD Base Address %s must be 8-byte aligned.' % (FdRegion.Offset)) FdfProfile =3D Fdf.Profile --=20 2.21.0 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#51549): https://edk2.groups.io/g/devel/message/51549 Mute This Topic: https://groups.io/mt/65079226/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-