mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01: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: 662f52f1713c9f070550fc0c874eb62312218ea4) Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> feature-microblaze-versions.inc# Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
605ef6f5a2
commit
6685094495
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user