39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
|
|
From cb5e4e55c489462a2ff11143a5768b5c096bf1ad Mon Sep 17 00:00:00 2001
|
||
|
|
From: qihao <qihao_yewu@cmss.chinamobile.com>
|
||
|
|
Date: Wed, 15 Nov 2023 14:49:44 +0800
|
||
|
|
Subject: [PATCH] tracetool: avoid invalid escape in Python string
|
||
|
|
MIME-Version: 1.0
|
||
|
|
Content-Type: text/plain; charset=UTF-8
|
||
|
|
Content-Transfer-Encoding: 8bit
|
||
|
|
|
||
|
|
cheery-pick from 4d96307c5b4fac40c6ca25f38318b4b65d315de0
|
||
|
|
|
||
|
|
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>
|
||
|
|
Signed-off-by: qihao_yewu <qihao_yewu@cmss.chinamobile.com>
|
||
|
|
---
|
||
|
|
scripts/tracetool/__init__.py | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/scripts/tracetool/__init__.py b/scripts/tracetool/__init__.py
|
||
|
|
index 5bc94d95cf..630e85a5d6 100644
|
||
|
|
--- a/scripts/tracetool/__init__.py
|
||
|
|
+++ b/scripts/tracetool/__init__.py
|
||
|
|
@@ -94,7 +94,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.27.0
|
||
|
|
|