From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 03198D80122 for ; Wed, 20 Dec 2023 23:51:26 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Kh60Een0OVVu/jvngw7p6eBCIeaOr7EH9++1fiR4x/8=; c=relaxed/simple; d=groups.io; h=Feedback-ID:Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References:From:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1703116285; v=1; b=BZUnfVKv23b5u18gOn1E3RlwAtVOCC4brq7vo6Pr1y4IxW6R/0afZFLJT0Q99WU0PrCXeHZq S6TJCi5T7WrH/1rFkLG0ijRpFCs2c9fSIgmXWBXe7akMBqaVYGkcuxwv6dFkxYaWYBymfIZjEeY s7870yOx4Rk2REOIQGOe0j00= X-Received: by 127.0.0.2 with SMTP id UTKcYY7687511x6m36Iwr7JJ; Wed, 20 Dec 2023 15:51:25 -0800 X-Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by mx.groups.io with SMTP id smtpd.web10.36642.1703116284764717954 for ; Wed, 20 Dec 2023 15:51:25 -0800 X-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 1AF0B5C0689; Wed, 20 Dec 2023 18:51:24 -0500 (EST) X-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 20 Dec 2023 18:51:24 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvddufedgudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeftvggs vggttggrucevrhgrnhcuoehrvggsvggttggrsegsshguihhordgtohhmqeenucggtffrrg htthgvrhhnpedtgeduhfelleehkedvheefheelkeehleefudelgedvudehveettdevgeel uedvleenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomheprhgvsggvtggtrgessghsughiohdrtgho mh X-ME-Proxy: Feedback-ID: i5b994698:Fastmail X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 20 Dec 2023 18:51:22 -0500 (EST) Message-ID: <913e48e7-50d6-4d49-a1ff-8cfc0ee35122@bsdio.com> Date: Wed, 20 Dec 2023 16:51:17 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] [PATCH v1 0/1] Resolve regex syntax warnings To: Joey Vagedes , devel@edk2.groups.io Cc: Liming Gao , Bob Feng , Yuwei Chen References: <20231206202703.1568-1-joey.vagedes@gmail.com> From: "Rebecca Cran" In-Reply-To: <20231206202703.1568-1-joey.vagedes@gmail.com> Precedence: Bulk List-Subscribe: List-Help: 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,rebecca@bsdio.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: LlOtFgmzRt9h2afrPyr5T9Q3x7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=BZUnfVKv; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=none Queued as https://github.com/tianocore/edk2/pull/5178 . On 12/6/2023 1:27 PM, Joey Vagedes wrote: > Python 3.12 now produces syntax warnings when using an invalid escape > character (\ followed by an unexpected character). This happens > throughout BaseTools due the usage of regular expressions. the re module > in python suggests that when creating regex patterns, to use raw text. > This patch series adds the r prefix to any regex pattern that uses an > invalid escape sequence. > > Cc: Rebecca Cran > Cc: Liming Gao > Cc: Bob Feng > Cc: Yuwei Chen > Signed-off-by: Joey Vagedes > > Joey Vagedes (1): > BaseTools: Resolve regex syntax warnings > > BaseTools/Source/Python/AmlToC/AmlToC.py | 2 +- > BaseTools/Source/Python/AutoGen/BuildEngine.py | 2 +- > BaseTools/Source/Python/AutoGen/GenDepex.py | 2 +- > BaseTools/Source/Python/AutoGen/GenMake.py | 2 +- > BaseTools/Source/Python/AutoGen/IdfClassObject.py | 2 +- > BaseTools/Source/Python/AutoGen/ModuleAutoGen.py | 4 ++-- > BaseTools/Source/Python/AutoGen/StrGather.py | 2 +- > BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py | 2 +- > BaseTools/Source/Python/Common/Expression.py | 16 +++++= +------- > BaseTools/Source/Python/Common/GlobalData.py | 4 ++-- > BaseTools/Source/Python/Common/Misc.py | 24 +++++= +++++---------- > BaseTools/Source/Python/Common/ToolDefClassObject.py | 6 ++--- > BaseTools/Source/Python/GenFds/FdfParser.py | 10 ++++-= --- > BaseTools/Source/Python/GenFds/GenFds.py | 2 +- > BaseTools/Source/Python/GenPatchPcdTable/GenPatchPcdTable.py | 12 +++++= ----- > BaseTools/Source/Python/Trim/Trim.py | 18 +++++= ++-------- > BaseTools/Source/Python/Workspace/DscBuildData.py | 8 +++--= -- > BaseTools/Source/Python/Workspace/MetaFileParser.py | 2 +- > 18 files changed, 60 insertions(+), 60 deletions(-) > -=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 (#112776): https://edk2.groups.io/g/devel/message/112776 Mute This Topic: https://groups.io/mt/103021364/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-