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 E847A941CFD for ; Wed, 6 Dec 2023 20:27:17 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=kkO3K46KK/5BqbmyUB6a7VF6hFukHusJUniaM8XPndw=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1701894436; v=1; b=YmXD5nNjgdmPqnfH2tKfmLwy72rzMOKV8ejvYkDs+v+ShwaPRO4ThFZte4KmK1GN0QG8g5H9 TK/iOXR6AJ921e4EoPSC1e02smNA9t6EpNQ3+/E30CoLZ2yVJ1gc8XEk0Ya/obLrLtHBnPdeunk mO6LKmIbrMbMZCcCSrDFIg+s= X-Received: by 127.0.0.2 with SMTP id LRpXYY7687511xc81NgctvgZ; Wed, 06 Dec 2023 12:27:16 -0800 X-Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mx.groups.io with SMTP id smtpd.web10.44219.1701894436031532835 for ; Wed, 06 Dec 2023 12:27:16 -0800 X-Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-5c68b5cf14bso134400a12.0 for ; Wed, 06 Dec 2023 12:27:15 -0800 (PST) X-Gm-Message-State: keJ42n6aChRXNjgfrbobMZvWx7686176AA= X-Google-Smtp-Source: AGHT+IENPI8Enqccqpwqiex20Sw2it9hGEQcHvbpRau9/7ekV+dTfr7kMSg+SY0/G2nFGZW45Ku62w== X-Received: by 2002:a17:90a:4747:b0:286:e8de:50e6 with SMTP id y7-20020a17090a474700b00286e8de50e6mr1291149pjg.19.1701894434996; Wed, 06 Dec 2023 12:27:14 -0800 (PST) X-Received: from localhost.localdomain (c-174-164-102-13.hsd1.wa.comcast.net. [174.164.102.13]) by smtp.gmail.com with ESMTPSA id gz9-20020a17090b0ec900b00286dae0ac84sm269868pjb.46.2023.12.06.12.27.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 12:27:14 -0800 (PST) From: "Joey Vagedes via groups.io" To: devel@edk2.groups.io Cc: Rebecca Cran , Liming Gao , Bob Feng , Yuwei Chen Subject: [edk2-devel] [PATCH v1 0/1] Resolve regex syntax warnings Date: Wed, 6 Dec 2023 12:27:01 -0800 Message-ID: <20231206202703.1568-1-joey.vagedes@gmail.com> MIME-Version: 1.0 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,joeyvagedes@microsoft.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=YmXD5nNj; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io 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(-) -- 2.43.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#112139): https://edk2.groups.io/g/devel/message/112139 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] -=-=-=-=-=-=-=-=-=-=-=-