mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
feature-microblaze-versions.inc: python 3.12 regex
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: 2331982cf4f4649f1ec271640f8f7d33fa6ea88d) Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> feature-microblaze-versions.inc# Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Cherry-picked from master: 662f52f1713c9f070550fc0c874eb62312218ea4 Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
parent
4f6135b350
commit
423bb12dcf
|
|
@ -16,7 +16,7 @@ def microblaze_current_version(d, gcc = False):
|
|||
# find the current version, and convert it to major/minor integers
|
||||
version = None
|
||||
for t in (d.getVar("TUNE_FEATURES") or "").split():
|
||||
m = re.search("^v(\d+)\.(\d+)", t)
|
||||
m = re.search(r"^v(\d+)\.(\d+)", t)
|
||||
if m:
|
||||
version = int(m.group(1)), int(m.group(2))
|
||||
break
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user