tracetool: avoid invalid escape in Python string

This is an error in Python 3.12; fix it by using a raw string literal.

Cc:  <qemu-stable@nongnu.org>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20231108105649.60453-1-marcandre.lureau@redhat.com>
(cherry picked from commit 4d96307c5b4fac40c6ca25f38318b4b65d315de0)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Marc-André Lureau 2023-11-08 14:56:49 +04:00 committed by Michael Tokarev
parent 097c347136
commit 100feda604

View file

@ -91,7 +91,7 @@ def out(*lines, **kwargs):
def validate_type(name): def validate_type(name):
bits = name.split(" ") bits = name.split(" ")
for bit in bits: for bit in bits:
bit = re.sub("\*", "", bit) bit = re.sub(r"\*", "", bit)
if bit == "": if bit == "":
continue continue
if bit == "const": if bit == "const":