Skip to content

Commit

Permalink
tracetool: avoid invalid escape in Python string
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
elmarco authored and stefanhaRH committed Nov 9, 2023
1 parent a3c3aaa commit 4d96307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/tracetool/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 4d96307

Please sign in to comment.