diff options
| author | Adrian Freihofer <adrian.freihofer@gmail.com> | 2024-02-21 20:37:02 +0100 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-03-01 05:19:54 -1000 |
| commit | 423bb12dcfb8dce3dc1ae345d34469d01809c750 (patch) | |
| tree | 67cff1f71b39e08554b05e1aa19b73545b2bcd8f /meta/conf | |
| parent | 4f6135b3501514e187ca4877ed33004b5e3df5ed (diff) | |
| download | poky-423bb12dcfb8dce3dc1ae345d34469d01809c750.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: 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>
Diffstat (limited to 'meta/conf')
| -rw-r--r-- | meta/conf/machine/include/microblaze/feature-microblaze-versions.inc | 2 |
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 |
