summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Freihofer <adrian.freihofer@gmail.com>2024-02-10 14:15:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-13 13:51:41 +0000
commit66850944957c312d3acc361267536b1f4aa8474e (patch)
treef756becd14f2866dc6df939b2f28209dc40d0b36
parent605ef6f5a292fe169b1469b0a8996f3d5ae53daf (diff)
downloadpoky-66850944957c312d3acc361267536b1f4aa8474e.tar.gz
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>
-rw-r--r--meta/conf/machine/include/microblaze/feature-microblaze-versions.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/conf/machine/include/microblaze/feature-microblaze-versions.inc b/meta/conf/machine/include/microblaze/feature-microblaze-versions.inc
index 5c37f49abb..658e87b8cd 100644
--- a/meta/conf/machine/include/microblaze/feature-microblaze-versions.inc
+++ b/meta/conf/machine/include/microblaze/feature-microblaze-versions.inc
@@ -16,7 +16,7 @@ def microblaze_current_version(d, gcc = False):
16 # find the current version, and convert it to major/minor integers 16 # find the current version, and convert it to major/minor integers
17 version = None 17 version = None
18 for t in (d.getVar("TUNE_FEATURES") or "").split(): 18 for t in (d.getVar("TUNE_FEATURES") or "").split():
19 m = re.search("^v(\d+)\.(\d+)", t) 19 m = re.search(r"^v(\d+)\.(\d+)", t)
20 if m: 20 if m:
21 version = int(m.group(1)), int(m.group(2)) 21 version = int(m.group(1)), int(m.group(2))
22 break 22 break