From: Alexander Kanavin Date: Fri, 5 Jan 2024 13:35:41 +0000 (+0100) Subject: devtool/standard: correctly escape \ X-Git-Tag: uninative-4.4~523 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bafb4b4edb4fb7908fdda272b7b2c2cbdef4728b;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git devtool/standard: correctly escape \ python 3.12 points out that: SyntaxWarning: invalid escape sequence '\*' Signed-off-by: Alexander Kanavin Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 2e56cd3050b..13612d64c4c 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py @@ -772,7 +772,7 @@ def get_staging_kver(srcdir): def get_staging_kbranch(srcdir): staging_kbranch = "" if os.path.exists(srcdir) and os.listdir(srcdir): - (branch, _) = bb.process.run('git branch | grep \* | cut -d \' \' -f2', cwd=srcdir) + (branch, _) = bb.process.run('git branch | grep \\* | cut -d \' \' -f2', cwd=srcdir) staging_kbranch = "".join(branch.split('\n')[0]) return staging_kbranch