summaryrefslogtreecommitdiffstats
path: root/meta/classes/clutter.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-07 00:04:50 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-08 17:17:01 +0000
commit7843548285e2eea8158670316058fff4b769c236 (patch)
tree1abc8618037b3e34b1a0fe93f8a38b93e5e1c0f4 /meta/classes/clutter.bbclass
parent0985ac745f978396086417a25c1271e28ec65b2d (diff)
downloadpoky-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.bbclass4
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 @@
1def get_minor_dir(v): 1def 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
6def get_real_name(n): 6def 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
11VERMINOR = "${@get_minor_dir("${PV}")}" 11VERMINOR = "${@get_minor_dir("${PV}")}"