public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Joey Vagedes via groups.io" <joeyvagedes=microsoft.com@groups.io>
To: devel@edk2.groups.io
Cc: Rebecca Cran <rebecca@bsdio.com>,
	Liming Gao <gaoliming@byosoft.com.cn>,
	Bob Feng <bob.c.feng@intel.com>,
	Yuwei Chen <yuwei.chen@intel.com>
Subject: [edk2-devel] [PATCH v1 0/1] Resolve regex syntax warnings
Date: Wed,  6 Dec 2023 12:27:01 -0800	[thread overview]
Message-ID: <20231206202703.1568-1-joey.vagedes@gmail.com> (raw)

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 <rebecca@bsdio.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Signed-off-by: Joey Vagedes <joey.vagedes@gmail.com>

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]
-=-=-=-=-=-=-=-=-=-=-=-



             reply	other threads:[~2023-12-06 20:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-06 20:27 Joey Vagedes via groups.io [this message]
2023-12-06 20:27 ` [edk2-devel] [PATCH v1 1/1] BaseTools: Resolve regex syntax warnings Joey Vagedes via groups.io
2023-12-12  0:30   ` [edk2-devel] 回复: " gaoliming via groups.io
2023-12-13 21:20     ` [edk2-devel] " Joey Vagedes via groups.io
2023-12-20 22:57   ` Rebecca Cran
2023-12-20 23:51 ` [edk2-devel] [PATCH v1 0/1] " Rebecca Cran

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231206202703.1568-1-joey.vagedes@gmail.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox