From nobody Thu Mar 28 11:55:32 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+43668+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+43668+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1562957905; cv=none; d=zoho.com; s=zohoarc; b=hR+W04cNhDE67mEFlOSUjvJC0ivb7z8Cinn4anxE6KvMBwA35MHmJ/aiQ5z1xxQyqSA5tjeTMj/qZVIJV5mg/mGfJUH6h+/iawwDZFbMCX6EDbxrw/Pg24UDqL0Js+s+6cUFUVvaShiH+PJIuq3bgie61xraltLFQi1LouwUjaU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562957905; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=rvTET6DHDz9akZsIzyFw+gHoJMvSYJsTbizkHaw1rs8=; b=UvAireR5wiyI7MwtAm/sakhQl6JA19ioDcNPsM4Z/SASECHErTiQpOhGj+pN2xb6DcUy9g6p+eSOZOyGSEI4juALIxi3A9oAODBWYvog4xipbjxMGDvU3ciAVFjvPh1h71Bu+ep6tWp+4kSreF0rQ2VE6TMKZQbpX1ZpElTCTXk= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+43668+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 1562957905155244.15716571908968; Fri, 12 Jul 2019 11:58:25 -0700 (PDT) Return-Path: X-Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by groups.io with SMTP; Fri, 12 Jul 2019 10:29:31 -0700 X-Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CE0A63091D70 for ; Fri, 12 Jul 2019 17:29:30 +0000 (UTC) X-Received: from worklaptop.redhat.com (ovpn-120-148.rdu2.redhat.com [10.10.120.148]) by smtp.corp.redhat.com (Postfix) with ESMTP id 55DB560BFB; Fri, 12 Jul 2019 17:29:30 +0000 (UTC) From: Cole Robinson To: devel@edk2.groups.io Cc: Laszlo Ersek , Cole Robinson Subject: [edk2-devel] [PATCH] BaseTools: Fix python3.8 SyntaxWarning Date: Fri, 12 Jul 2019 13:29:28 -0400 Message-Id: <6692fad1d6b57307a5da195986ed23074021fc88.1562952568.git.crobinso@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Fri, 12 Jul 2019 17:29:30 +0000 (UTC) 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,crobinso@redhat.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1562957904; bh=vhP8BNhL40iQpQcGgyRnCUX2lbYBWAGHYR1/01j2JB0=; h=Cc:Date:From:Reply-To:Subject:To; b=OcJL7RaY4dMubBBkIL6H30AN/BJlZvH2sI8FQ/tT6jPdYOSJUPQt1ayseau8OfoVE8O PuOYdvn8AYVQW9BKQwg8l8xzqfA4J826SkzyMOB3vmmct3v69WSDW8fCpUA7NHCAqxC9Y svi8qsuny7EQ3pG63scfrpdLkjDsbbORROg= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Building with python3.8 shows a warning like: SyntaxWarning: invalid escape sequence \( GuidName =3D re.compile("\(GUID=3D[-a-fA-F0-9]+") It seems harmless, but it's easy enough to fix: mark the string as raw with the 'r' prefix like is used elsewhere in the file Signed-off-by: Cole Robinson Reviewed-by: Bob Feng Reviewed-by: Laszlo Ersek --- BaseTools/Source/Python/build/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Pyth= on/build/build.py index 8c3315619a..d6006b651f 100644 --- a/BaseTools/Source/Python/build/build.py +++ b/BaseTools/Source/Python/build/build.py @@ -1499,7 +1499,7 @@ class Build(): if self.Fdf: # First get the XIP base address for FV map file. GuidPattern =3D re.compile("[-a-fA-F0-9]+") - GuidName =3D re.compile("\(GUID=3D[-a-fA-F0-9]+") + GuidName =3D re.compile(r"\(GUID=3D[-a-fA-F0-9]+") for FvName in Wa.FdfProfile.FvDict: FvMapBuffer =3D os.path.join(Wa.FvDir, FvName + '.Fv.map') if not os.path.exists(FvMapBuffer): --=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 (#43668): https://edk2.groups.io/g/devel/message/43668 Mute This Topic: https://groups.io/mt/32445092/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-