Skip to content
Snippets Groups Projects
Commit 4d96307c authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Stefan Hajnoczi
Browse files

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: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20231108105649.60453-1-marcandre.lureau@redhat.com>
parent a3c3aaa8
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@ def out(*lines, **kwargs):
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":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment