From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: redhat.com, ip: 209.132.183.28, mailfrom: crobinso@redhat.com) 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 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) 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: [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) Content-Transfer-Encoding: quoted-printable 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 --- 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/Py= thon/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