[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stable-8.1.3 54/59] tracetool: avoid invalid escape in Python string
From: |
Michael Tokarev |
Subject: |
[Stable-8.1.3 54/59] tracetool: avoid invalid escape in Python string |
Date: |
Sun, 19 Nov 2023 21:19:50 +0300 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
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>
diff --git a/scripts/tracetool/__init__.py b/scripts/tracetool/__init__.py
index b29594d75e..b887540a55 100644
--- a/scripts/tracetool/__init__.py
+++ b/scripts/tracetool/__init__.py
@@ -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":
--
2.39.2
- [Stable-8.1.3 v2 00/59] Patch Round-up for stable 8.1.3, frozen on 2023-11-19, Michael Tokarev, 2023/11/19
- [Stable-8.1.3 54/59] tracetool: avoid invalid escape in Python string,
Michael Tokarev <=
- [Stable-8.1.3 55/59] target/riscv/kvm: improve 'init_multiext_cfg' error msg, Michael Tokarev, 2023/11/19
- [Stable-8.1.3 57/59] s390x/pci: only limit DMA aperture if vfio DMA limit reported, Michael Tokarev, 2023/11/19
- [Stable-8.1.3 56/59] target/riscv/kvm: support KVM_GET_REG_LIST, Michael Tokarev, 2023/11/19
- [Stable-8.1.3 59/59] hw/mips: LOONGSON3V depends on UNIMP device, Michael Tokarev, 2023/11/19
- [Stable-8.1.3 58/59] target/arm: HVC at EL3 should go to EL3, not EL2, Michael Tokarev, 2023/11/19
- Re: [Stable-8.1.3 v2 00/59] Patch Round-up for stable 8.1.3, frozen on 2023-11-19, Thomas Huth, 2023/11/20