Skip to content

pr-1639/Bekenn/p4-raw-strings-v2

From: James Touton <bekenn@gmail.com>

Fixes several Python diagnostics about invalid escape sequences. The
diagnostics appear for me in Python 3.12, and may appear in earlier
versions. The fix is to use raw string literals so that backslashes are
not interpreted as introducing escape sequences. Raw string literals
are already in use in this file, so adding more does not impact
toolchain compatibility.

Signed-off-by: James Touton <bekenn@gmail.com>

Submitted-As: https://lore.kernel.org/git/pull.1639.v2.git.1706312496608.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1639.git.1705775149642.gitgitgadget@gmail.com
Assets 2