summaryrefslogtreecommitdiffstats
path: root/scripts/oe-check-sstate
diff options
context:
space:
mode:
authorAdrian Freihofer <adrian.freihofer@gmail.com>2024-02-21 20:37:05 +0100
committerSteve Sakoman <steve@sakoman.com>2024-02-26 04:00:09 -1000
commit63998f13d5263ce19a60ed3fba1ac8b6f23558e3 (patch)
treed3f184463741b904edc83187bbaaa065dbe8c7a6 /scripts/oe-check-sstate
parentd4e11eebdfe50acc124a87341721a12bc1c15024 (diff)
downloadopenembedded-core-contrib-63998f13d5263ce19a60ed3fba1ac8b6f23558e3.tar.gz
scripts: python 3.12 regex
All the regexes throw a warning like this: WARNING: scripts/lib/recipetool/create_buildsys.py:140: SyntaxWarning: invalid escape sequence '\s' proj_re = re.compile('project\s*\(([^)]*)\)', re.IGNORECASE) Python 3 interprets string literals as Unicode strings, and therefore \s is treated as an escaped Unicode character which is not correct. Declaring the RegEx pattern as a raw string instead of unicode is required for Python 3. Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Backported from master: 24b0ba00d4f0b4d9834f7693ecb6032dfc534a80 Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts/oe-check-sstate')
-rwxr-xr-xscripts/oe-check-sstate2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/oe-check-sstate b/scripts/oe-check-sstate
index 4187e774581..0d171c44632 100755
--- a/scripts/oe-check-sstate
+++ b/scripts/oe-check-sstate
@@ -53,7 +53,7 @@ def check(args):
cmd = ['bitbake', '--dry-run', '--runall=build'] + args.target
output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, env=env)
- task_re = re.compile('NOTE: Running setscene task [0-9]+ of [0-9]+ \(([^)]+)\)')
+ task_re = re.compile(r'NOTE: Running setscene task [0-9]+ of [0-9]+ \(([^)]+)\)')
tasks = []
for line in output.decode('utf-8').splitlines():
res = task_re.match(line)