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 4d96307c5b
)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
15764a7635
commit
38312c2c3b
@ -92,7 +92,7 @@ ALLOWED_TYPES = [
|
||||
def validate_type(name):
|
||||
bits = name.split(" ")
|
||||
for bit in bits:
|
||||
bit = re.sub("\*", "", bit)
|
||||
bit = re.sub(r"\*", "", bit)
|
||||
if bit == "":
|
||||
continue
|
||||
if bit == "const":
|
||||
|
Loading…
Reference in New Issue
Block a user