]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
scripts: python 3.12 regex
authorAdrian Freihofer <adrian.freihofer@gmail.com>
Sat, 10 Feb 2024 13:15:54 +0000 (14:15 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Feb 2024 13:51:38 +0000 (13:51 +0000)
commit24b0ba00d4f0b4d9834f7693ecb6032dfc534a80
treee693d707f92c22e41105f40ec80f5caa5a43ef3d
parent7df99843d8f31d8e0c2872ff625f4a5abf28f740
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>
scripts/combo-layer
scripts/contrib/bbvars.py
scripts/contrib/convert-overrides.py
scripts/lib/checklayer/__init__.py
scripts/lib/recipetool/create.py
scripts/lib/recipetool/create_buildsys.py
scripts/oe-check-sstate
scripts/oe-pkgdata-util
scripts/opkg-query-helper.py
scripts/patchtest-get-branch