]> git.ipfire.org Git - thirdparty/git.git/commit - git-p4.py
git-p4: use raw string literals for regular expressions
authorJames Touton <bekenn@gmail.com>
Fri, 26 Jan 2024 23:41:36 +0000 (23:41 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 29 Jan 2024 17:25:16 +0000 (09:25 -0800)
commit90231982800152c4d66d0feb026c2ed8d28949d4
tree84fbaa0ab525a6ec166a0baf378fe92ad61b7fc3
parent564d0252ca632e0264ed670534a51d18a689ef5d
git-p4: use raw string literals for regular expressions

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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py