aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2023-11-08 14:56:49 +0400
committerStefan Hajnoczi <stefanha@redhat.com>2023-11-09 15:03:02 +0800
commit4d96307c5b4fac40c6ca25f38318b4b65d315de0 (patch)
treec53bc6fb9b124df496c055e0f399d431efd255ae /scripts
parenta3c3aaa846ad61b801e7196482dcf4afb8ba34e4 (diff)
downloadqemu-4d96307c5b4fac40c6ca25f38318b4b65d315de0.zip
qemu-4d96307c5b4fac40c6ca25f38318b4b65d315de0.tar.gz
qemu-4d96307c5b4fac40c6ca25f38318b4b65d315de0.tar.bz2
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/tracetool/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tracetool/__init__.py b/scripts/tracetool/__init__.py
index b29594d..b887540 100644
--- a/scripts/tracetool/__init__.py
+++ b/scripts/tracetool/__init__.py
@@ -91,7 +91,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":