From nobody Sun May 5 15:23:33 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+40169+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+40169+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1557290549; cv=none; d=zoho.com; s=zohoarc; b=BaReS3PES18s9Ik0z+NSqf/ze/tPY5sEdJ5a0FF9WCJVx7q1y1q2IL9FQDJXp9yymefG9jq8XyKb+mWz57488AqG1pUevtK515JugVNMRj1nClqq49HZ/vn8yERGFqHQliHyovzKu/hYYuiAi5L8R6lk82u6PJCfhsuHzy0O6RM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557290549; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=u+OLAlms9IC1d9w58qApzIfBsNfwwLL7p8RLCtoSDWk=; b=ZAncsWxJfWSB+mq1N+cKZQUg3ggp2mFq7P6CE6VDxLpDiNLclig/KMbRZhIX76IyxL371dCwY7iyqDGitsPrHUUhzBG97RZBKej7cljnsS6hxmorNMwLPfkdSFnyVQ+UVpzDf6/rgEdhssM9U/jLGZiqvolO75OG49/lPNPeKro= 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+40169+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 1557290549541687.9278262997188; Tue, 7 May 2019 21:42:29 -0700 (PDT) Return-Path: X-Received: from Rosa-R11-plasma.localdomain (Rosa-R11-plasma.localdomain [47.14.91.46]) by groups.io with SMTP; Tue, 07 May 2019 21:17:45 -0700 X-Received: by Rosa-R11-plasma.localdomain (Postfix, from userid 500) id 3824C12017C; Wed, 8 May 2019 00:17:57 -0400 (EDT) From: "Mikhail Terekhov" To: devel@edk2.groups.io Cc: Mikhail Terekhov Subject: [edk2-devel] [PATCH] Python 3.8 compatibility Date: Wed, 8 May 2019 00:17:54 -0400 Message-Id: <20190508041754.3611-1-termim@gmail.com> MIME-Version: 1.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,termim@gmail.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=1557290548; bh=744a8JiI9PLYiAmsUbAqRshrL3zoHLttUFX5X/hSduA=; h=Cc:Date:From:Reply-To:Subject:To; b=FQ6j3aJlckzg4jPOdY+8Usgf/T9+xFrmxe+KzehKRt4Rln4aomsT+86HqO2osVBYwm5 RL98ayGzc6iPFxbM/3PNFfvMNuncP7wzbFdUsLRp+/6gmRKHJQDAlU5YV1n7OkPVG/6b8 DjSF7geiQPaWKq/UDFqnvIf/QmlT3GIvCMs= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Fix SyntaxWarning in regular expression on Python 3.8 Signed-off-by: Mikhail Terekhov --- BaseTools/Source/Python/build/build.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Pyth= on/build/build.py index 7271570d29..52e535b4e4 100644 --- a/BaseTools/Source/Python/build/build.py +++ b/BaseTools/Source/Python/build/build.py @@ -1228,7 +1228,7 @@ class Build(): # run if Target =3D=3D 'run': RunDir =3D os.path.normpath(os.path.join(AutoGenObject.BuildDi= r, GlobalData.gGlobalDefines['ARCH'])) - Command =3D '.\SecMain' + Command =3D '.\\SecMain' os.chdir(RunDir) LaunchCommand(Command, RunDir) return True @@ -1360,7 +1360,7 @@ class Build(): # run if Target =3D=3D 'run': RunDir =3D os.path.normpath(os.path.join(AutoGenObject.BuildDi= r, GlobalData.gGlobalDefines['ARCH'])) - Command =3D '.\SecMain' + Command =3D '.\\SecMain' os.chdir(RunDir) LaunchCommand(Command, RunDir) return True @@ -1482,7 +1482,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("[(]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.20.1 -=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 (#40169): https://edk2.groups.io/g/devel/message/40169 Mute This Topic: https://groups.io/mt/31540277/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-