From ac05e72f870d4a5085603feb5a9b51f3eea6ab4c Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 23 Jul 2025 15:55:06 +0100 Subject: pybootchartgui: mark a regex as a raw string Otherwise Python tries to unescape the \s and warns that it can't. (From OE-Core rev: 45435a18f6ce665eba5b2e708a72a4f596deb017) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- scripts/pybootchartgui/pybootchartgui/draw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/pybootchartgui') diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py index 16739a0fa1..09253ea185 100644 --- a/scripts/pybootchartgui/pybootchartgui/draw.py +++ b/scripts/pybootchartgui/pybootchartgui/draw.py @@ -844,7 +844,7 @@ def draw_header (ctx, headers, duration): toshow = [ ('system.uname', 'uname', lambda s: s), ('system.release', 'release', lambda s: s), - ('system.cpu', 'CPU', lambda s: re.sub('model name\s*:\s*', '', s, 1)), + ('system.cpu', 'CPU', lambda s: re.sub(r'model name\s*:\s*', '', s, 1)), ('system.kernel.options', 'kernel options', lambda s: s), ] -- cgit v1.2.3-54-g00ecf