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/perl-version.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/perl-version.bbclass')
-rw-r--r-- | meta/classes/perl-version.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/perl-version.bbclass b/meta/classes/perl-version.bbclass index fafe68a775..bafd96518a 100644 --- a/meta/classes/perl-version.bbclass +++ b/meta/classes/perl-version.bbclass | |||
@@ -13,7 +13,7 @@ def get_perl_version(d): | |||
13 | return None | 13 | return None |
14 | l = f.readlines(); | 14 | l = f.readlines(); |
15 | f.close(); | 15 | f.close(); |
16 | r = re.compile("^version='(\d*\.\d*\.\d*)'") | 16 | r = re.compile(r"^version='(\d*\.\d*\.\d*)'") |
17 | for s in l: | 17 | for s in l: |
18 | m = r.match(s) | 18 | m = r.match(s) |
19 | if m: | 19 | if m: |