diff options
author | Adrian Freihofer <adrian.freihofer@gmail.com> | 2024-02-10 14:15:54 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-02-13 13:51:41 +0000 |
commit | 605ef6f5a292fe169b1469b0a8996f3d5ae53daf (patch) | |
tree | 68ea616c466ade988cc324256d012e1ec6501942 /scripts/oe-check-sstate | |
parent | 97eebe59d7ba9d7eb647a2f2a0353fc2424e9827 (diff) | |
download | poky-605ef6f5a292fe169b1469b0a8996f3d5ae53daf.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.
(From OE-Core rev: 24b0ba00d4f0b4d9834f7693ecb6032dfc534a80)
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-check-sstate')
-rwxr-xr-x | scripts/oe-check-sstate | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/oe-check-sstate b/scripts/oe-check-sstate index 4187e77458..0d171c4463 100755 --- a/scripts/oe-check-sstate +++ b/scripts/oe-check-sstate | |||
@@ -53,7 +53,7 @@ def check(args): | |||
53 | cmd = ['bitbake', '--dry-run', '--runall=build'] + args.target | 53 | cmd = ['bitbake', '--dry-run', '--runall=build'] + args.target |
54 | output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, env=env) | 54 | output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, env=env) |
55 | 55 | ||
56 | task_re = re.compile('NOTE: Running setscene task [0-9]+ of [0-9]+ \(([^)]+)\)') | 56 | task_re = re.compile(r'NOTE: Running setscene task [0-9]+ of [0-9]+ \(([^)]+)\)') |
57 | tasks = [] | 57 | tasks = [] |
58 | for line in output.decode('utf-8').splitlines(): | 58 | for line in output.decode('utf-8').splitlines(): |
59 | res = task_re.match(line) | 59 | res = task_re.match(line) |