summaryrefslogtreecommitdiffstats
path: root/scripts/pybootchartgui
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-07-23 15:55:06 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-07-28 14:51:50 +0100
commitac05e72f870d4a5085603feb5a9b51f3eea6ab4c (patch)
treee2747ed2ddad1a9c32e3782292bb98b73f900689 /scripts/pybootchartgui
parentefbd99e462aaef554b8f119918311c54eaa10688 (diff)
downloadpoky-ac05e72f870d4a5085603feb5a9b51f3eea6ab4c.tar.gz
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 <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/pybootchartgui')
-rw-r--r--scripts/pybootchartgui/pybootchartgui/draw.py2
1 files changed, 1 insertions, 1 deletions
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):
844 toshow = [ 844 toshow = [
845 ('system.uname', 'uname', lambda s: s), 845 ('system.uname', 'uname', lambda s: s),
846 ('system.release', 'release', lambda s: s), 846 ('system.release', 'release', lambda s: s),
847 ('system.cpu', 'CPU', lambda s: re.sub('model name\s*:\s*', '', s, 1)), 847 ('system.cpu', 'CPU', lambda s: re.sub(r'model name\s*:\s*', '', s, 1)),
848 ('system.kernel.options', 'kernel options', lambda s: s), 848 ('system.kernel.options', 'kernel options', lambda s: s),
849 ] 849 ]
850 850