summaryrefslogtreecommitdiffstats
path: root/scripts/opkg-query-helper.py
diff options
context:
space:
mode:
authorAdrian Freihofer <adrian.freihofer@gmail.com>2024-02-21 20:37:05 +0100
committerSteve Sakoman <steve@sakoman.com>2024-03-01 05:19:54 -1000
commit0269cfc91c28e2332a8f148fe68f63b69ebc8e61 (patch)
tree1c6982671e2611d2437cb77f62e63f9546ac3715 /scripts/opkg-query-helper.py
parent95b1e23223d64b449eec3bdb35fba23e00e117b9 (diff)
downloadpoky-0269cfc91c28e2332a8f148fe68f63b69ebc8e61.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: 63998f13d5263ce19a60ed3fba1ac8b6f23558e3) 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/opkg-query-helper.py')
-rwxr-xr-xscripts/opkg-query-helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/opkg-query-helper.py b/scripts/opkg-query-helper.py
index bc3ab43823..084d9ef684 100755
--- a/scripts/opkg-query-helper.py
+++ b/scripts/opkg-query-helper.py
@@ -29,7 +29,7 @@ for arg in sys.argv[1:]:
29 args.append(arg) 29 args.append(arg)
30 30
31# Regex for removing version specs after dependency items 31# Regex for removing version specs after dependency items
32verregex = re.compile(' \([=<>]* [^ )]*\)') 32verregex = re.compile(r' \([=<>]* [^ )]*\)')
33 33
34pkg = "" 34pkg = ""
35ver = "" 35ver = ""