diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-07 00:04:50 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-08 17:17:01 +0000 |
commit | 7843548285e2eea8158670316058fff4b769c236 (patch) | |
tree | 1abc8618037b3e34b1a0fe93f8a38b93e5e1c0f4 /meta/classes/clutter.bbclass | |
parent | 0985ac745f978396086417a25c1271e28ec65b2d (diff) | |
download | poky-7843548285e2eea8158670316058fff4b769c236.tar.gz |
classes: Correctly markup regex strings
There are various escape characters in these stings which python warns
about so use the correct regex markup for them.
(From OE-Core rev: 252b69c9f2abe3258366c540f56b156ed63e5437)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/clutter.bbclass')
-rw-r--r-- | meta/classes/clutter.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/clutter.bbclass b/meta/classes/clutter.bbclass index 8550363bdf..5edab0e55d 100644 --- a/meta/classes/clutter.bbclass +++ b/meta/classes/clutter.bbclass | |||
@@ -1,11 +1,11 @@ | |||
1 | def get_minor_dir(v): | 1 | def get_minor_dir(v): |
2 | import re | 2 | import re |
3 | m = re.match("^([0-9]+)\.([0-9]+)", v) | 3 | m = re.match(r"^([0-9]+)\.([0-9]+)", v) |
4 | return "%s.%s" % (m.group(1), m.group(2)) | 4 | return "%s.%s" % (m.group(1), m.group(2)) |
5 | 5 | ||
6 | def get_real_name(n): | 6 | def get_real_name(n): |
7 | import re | 7 | import re |
8 | m = re.match("^([a-z]+(-[a-z]+)?)(-[0-9]+\.[0-9]+)?", n) | 8 | m = re.match(r"^([a-z]+(-[a-z]+)?)(-[0-9]+\.[0-9]+)?", n) |
9 | return "%s" % (m.group(1)) | 9 | return "%s" % (m.group(1)) |
10 | 10 | ||
11 | VERMINOR = "${@get_minor_dir("${PV}")}" | 11 | VERMINOR = "${@get_minor_dir("${PV}")}" |